Which job type to choose?

2017-03-21 Thread Yuri Kanivetsky
Hi, I believe I need something pretty basic. Like, I have a GitHub repo. And I want to make Jenkins do builds when pushes are made to it. Which job type do I choose? Freestyle project? Pipeline? Multibranch Pipeline? Which is good for what? Thanks in advance. -- You received this message bec

Re: Trying to disable email alerts to SCM committers

2017-03-21 Thread Slide
Check the set of email providers, my guess is that the committers provider is there. Remove it and only the list of emails you specified in the project will be used. On Tue, Mar 21, 2017, 15:08 Zach LaCelle wrote: > I'm using Editable Email Notification notifier, with only one email > address sp

Re: Avoid activation of github webhook for pipeline shared library in the application job

2017-03-21 Thread Cuong Tran
I haven't tried this yet but can you add the "Don't trigger a build on commit notifications" in the scm configuration of the library definition? On Saturday, March 18, 2017 at 6:42:31 PM UTC-7, Evgenii Pomnikov wrote: > > Hi! > > We call pipeline shared libraries in our Jenkinsfile via standard c

Re: Declarative pipelines vs scripted

2017-03-21 Thread Cuong Tran
The declarative option is nice but you will lose the ability to extract out reusable code via the shared library. For example, you can't do this yet: MyCompanyStandardPipeline { ... // which will plugin standard sections... } On Thursday, March 16, 2017 at 8:55:48 PM UTC-7, Nick Le Mouton w

Re: Trouble using MarkupBuilder DSL within Pipeline DSL

2017-03-21 Thread Cuong Tran
You need to approve it in the "In-process Script Approval" page under /manage. On Tuesday, November 15, 2016 at 9:24:48 AM UTC-8, David Karr wrote: > > In my Jenkinsfile, I'm trying to use MarkupBuilder to construct a simple > XML message. I first discovered that there are default security > re

Re: How to make Jenkins build something on pushing to GitHub?

2017-03-21 Thread Cuong Tran
Your job need to have a scm configuration for it to be triggered on commits. Either configure it as Multibranch Pipeline job or add a "git" or checkout step in your normal pipeline. On Tuesday, March 21, 2017 at 12:52:30 PM UTC-7, Yuri Kanivetsky wrote: > > Hi, > > I have a pipeline job. It has

Re: How to call a function defined within my Jenkinsfile

2017-03-21 Thread Cuong Tran
You can call any function the normal way: *stage (build) {* * buildProject(meta)* *}* *def buildProject(meta) {* * node {* * //whatever i need to do* * }* *}* On Tuesday, March 21, 2017 at 10:02:34 AM UTC-7, ishan jain wrote: > > Probably i am being silly, but seriously i

Re: Declarative pipeline: access JenkinsLocationConfiguration.getAdminAddress()?

2017-03-21 Thread Cuong Tran
You can access it via: hudson.model.JenkinsLocationConfiguration.get().getAdminAddress() You could also define a global variable on Jenkins and access it as "env.JENKINS_EMAIL". To take it a step further, you can encapsulate the whole thing in a library using Global Shared Library plugin:

Re: Access build duration inside declarative pipeline

2017-03-21 Thread Andrew Bayer
Correct! A. On Tue, Mar 21, 2017 at 1:56 PM, Nick Le Mouton wrote: > Thanks Andrew, looks good. So with this patch currentBuild.duration should > be non 0 and there should be currentBuild.durationString, is that correct? > > Nick > > On Tuesday, March 21, 2017 at 2:19:18 PM UTC+13, Andrew Bayer

Trying to disable email alerts to SCM committers

2017-03-21 Thread Zach LaCelle
I'm using Editable Email Notification notifier, with only one email address specified in the "Project Recipient List." However, on a failed build, everybody that committed to the repo gets an email. How do I disable the email feature of adding every committer since the last successful build?

Re: HELP! Trying to Upgrade

2017-03-21 Thread Daniel Beck
> On 21.03.2017, at 20:37, Allen Fisher wrote: > > I really don’t want to roll back but I need to get plugins updated. > Check your configured update site URL in the Advanced tab. It looks like that's the wiki page for the Disk Usage plugin, when it should be something like https://updates.j

Re: Trouble using MarkupBuilder DSL within Pipeline DSL

2017-03-21 Thread André Lanouette
Hello, Sorry to hijack this thread, but I am attempting to use the MarkupBuilder to generate POM aggregators project on the fly from my Jenkins Pipeline. However, I am also having a security issue when instantiating the MarkupBuilder: Scripts not permitted to use new groovy.xml.MarkupBuilder

Re: Access build duration inside declarative pipeline

2017-03-21 Thread Nick Le Mouton
Thanks Andrew, looks good. So with this patch currentBuild.duration should be non 0 and there should be currentBuild.durationString, is that correct? Nick On Tuesday, March 21, 2017 at 2:19:18 PM UTC+13, Andrew Bayer wrote: > > And a PR up at > https://github.com/jenkinsci/workflow-support-plug

Re: Maven Plugin

2017-03-21 Thread khmarbaise
Hi, you seemed to misunderstand Jenkins...Jenkins is a CI Solution which can be used for many think...I'm not sure if there is a Plugin to deploy to application servers like JBoss, Websphere, Galssfish or other things like Tomcat... But you will not find a war plugin in Jenkins...cause usually

Position: Business Analyst With SalesForce ---Boston, MA

2017-03-21 Thread Saurabh Upadhyay
*Position:** Business Analyst With SalesForce experience* *Location: Boston, MA* *Duration: 6 plus months contract* *Mode of Interview: Phone then on-site interview* *Visa Status: GC or citizens* *Description**:* · Business analysis planning and monitoring · Salesforce in

How to make Jenkins build something on pushing to GitHub?

2017-03-21 Thread Yuri Kanivetsky
Hi, I have a pipeline job. It has "GitHub project" checked in settings. Project url is specified. And "GitHub hook trigger for GITScm polling" is checked in Build Triggers. I can see notifications coming from GitHub in System Log: Mar 21, 2017 7:23:28 PM INFO org.jenkinsci.plugins.github.webho

is there a way to get all the enabled jobs on a jenkins CI System

2017-03-21 Thread Raj
I would like to know if there is a way to use jenkins cli jar file and find out if a given job is enabled or currently disabled. i have about 700 jobs on the server and would like to know the list of enabled and disabled jobs Thank you very much for your time. regards, Raj -- You received thi

HELP! Trying to Upgrade

2017-03-21 Thread Allen Fisher
Hi List- I'm trying to upgrade from 2.14 to the latest LTS (2.32.3) on CENTOS via Yum. The package upgraded successfully and the server came back, but I can't upgrade plugins. I get the following error when I click "Check for Updates" : java.io.IOException: Unhandled exception during updates se

Re: How to call a function defined within my Jenkinsfile

2017-03-21 Thread David Karr
On Tue, Mar 21, 2017 at 10:02 AM, ishan jain wrote: > Probably i am being silly, but seriously i am not able to call a function > which i have defined in my Jenkinsfile from within a step. Here is a sample: > > def meta = "something" > > stage (build) { > > buildProject(meta) > } > > def bui

Auto approve or dismiss input from pipeline script

2017-03-21 Thread Raja Chinnam
Hello I have a file input that pauses the build. The user may manually upload the file using the file input or make the file available on a network share. I am using the parallel construct to fork two branches - one for the input and one to look for the file on the share. Is there a way I can d

Re: Unable to start ssh slave , Getting java.lang.NullPointerException in hudson.Util.copyStream(Util.java:437)

2017-03-21 Thread Dante Pichardo
I got the same error. I copied slave.jar to this location /var/cache/jenkins/war/WEB-INF/ And it fixed the issue. On Sunday, August 19, 2012 at 3:09:00 AM UTC-5, Prafulla T wrote: > > > Hi All, > > I am getting following error while starting ssh slave. > Any help on how to solve this ? > > . >

How to call a function defined within my Jenkinsfile

2017-03-21 Thread ishan jain
Probably i am being silly, but seriously i am not able to call a function which i have defined in my Jenkinsfile from within a step. Here is a sample: *def meta = "something"* *stage (build) {* * buildProject(meta)* *}* *def buildProject(meta) {* *return {* * node {* * //wha

Re: How one should use jenkinsci/jnlp-slave for complex builds?

2017-03-21 Thread arseni . osipov
Posted solution here http://stackoverflow.com/questions/42930264/how-one-should-use-jenkinsci-jnlp-slave-for-complex-builds/42932767#42932767 вторник, 21 марта 2017 г., 15:39:00 UTC+1 пользователь arseni...@gmail.com написал: > > Hi, > > I am struggling with jenkinsci/jnlp-slave docker image and

Re: Console output at stage level

2017-03-21 Thread jerome
+1 That would be awesome, this along console parsing per stage output would greatly improve speed on console output parsing. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send

Re: Zip and archive folder/sub folders

2017-03-21 Thread jerome
zip zipFile: "x64\\Release\\${APPLY_TAG}.zip", dir: "x64\\Release\\${APPLY_TAG}"; archiveArtifacts artifacts: "x64\\Release\\${APPLY_TAG}.zip", fingerprint: false, allowEmptyArchive: false, onlyIfSuccessful: true; This work for me, make sure your path are adapted to the platform (Unix vs Window

Re: Jenkins 2.49: Can't install JDK from tar.gz?

2017-03-21 Thread Jeff
Perfect! That was it! I was apparently on autopilot when I configured the installer and did give it a label that matched the Name attribute. Thanks again! On Mon, Mar 20, 2017 at 7:22 PM, Daniel Beck wrote: > > > On 20.03.2017, at 21:25, Jeff wrote: > > > > Any thoughts as to why this isn't wo

How one should use jenkinsci/jnlp-slave for complex builds?

2017-03-21 Thread arseni . osipov
Hi, I am struggling with jenkinsci/jnlp-slave docker image and ECS Plugin https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Container+Service+Plugin I am using complex docker containers (based on CentOS) for the builds. It works perfectly on local docker, but I want to try ECS and plugin a

Re: Jenkins Pipeline Groovy Script for TFS as SCM

2017-03-21 Thread Mark Waite
You might check with your TFS administrator to see if they've enabled git access to the TFS repository. If they have, then you can use the git plugin to clone the TFS repository. Mark Waite On Tue, Mar 21, 2017 at 6:52 AM Salman Patel wrote: > Hello Guys, > I have started creating Jenkins job

Jenkins Pipeline Groovy Script for TFS as SCM

2017-03-21 Thread Salman Patel
Hello Guys, I have started creating Jenkins job with Pipeline Plugin. I am able to build a job when I use *'git'* for source code (of project to be build) checkout. Do we have any option to use '*tfs' *for the same. I have found some webpages saying that TFS Plugin do not support Credentials plu

Maven Plugin

2017-03-21 Thread christopher j
Hi All, I am trying deploy war using maven in Jenkins, I am searching for maven war plugin in jenkins. But I couldnt get the Plugin in jenkins->Manage PLugins. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

More than 1 Checkstyle report in Jenkins Job

2017-03-21 Thread 'David Edwards' via Jenkins Users
Hello I am looking to add a new checkstyle report to a Jenkins job that already produces a checkstyle report. I would like to keep both reports separate not aggregate them. The problem I am getting is that the second checkstyle report is over writing the first report when the CheckStylePublish