Re: Multibranch Pipeline: How to parameterize?

2016-06-21 Thread Sverre Moe
Found some clue in https://issues.jenkins-ci.org/browse/JENKINS-32780 Using the Snippet code generator I was able to generate a build parameter properties [[$class: 'ParametersDefinitionProperty', parameterDefinitions: [[$class: 'BooleanParameterDefinition', defaultValue: false, description: 'For

Re: Multibranch Pipeline: How to parameterize?

2016-06-21 Thread Sverre Moe
Each branch pipeline has their own config.xml. A standard pipeline job does have support for parameterization. I think I read somewhere in Jenkins JIRA that such properties should be defined in the Jenkinsfile and set for the branch pipeline project on the first run. I am a bit unsure how to set

Re: Jenkins Pipeline Job sthrowing Error code 126 when trying to execute a sh command

2016-06-21 Thread Mike Chmielewski
The issue seems to have been jenkins filling in the empty default shell in the global configuration when moving to Jenkins 2.X. Removing it made it all work. On Tuesday, June 21, 2016 at 9:47:47 AM UTC-4, Craig Rodrigues wrote: > > To debug the problem, would you be comforable modifying and rebu

Re: Unable to Start NEW SSH slave

2016-06-21 Thread Krishna Kumar Tiwari
I am also not able to launch my slave agent. I also created another Jenkins master , but the same problem persists ! Does anyone have ever faced this situation or how to work with firewall here ? On Monday, 17 June 2013 18:34:50 UTC+5:30, Walter Kacynski wrote: > > I'm trying to attache a new SS

artifactory plugin maven job : Unable to determine Maven version

2016-06-21 Thread Matthieu Simonin
Hello, In a maven job : When enabling artifactory plugin to deploy artifacts to artifactory I got the following error (see stacktrace below). The build succeeds if I don't "deploy artifacts to artifactory". This behaviour has been observed fot Jenkins version : - 1.651.2 - 1.651.3 - 1.658

How to resolve the email not send error?

2016-06-21 Thread Vadivel Natarajan
Hi, 1) Email was not triggered to below email id. There is no error. Could anyone please help me on this? i have set the smtp as proper one. Email was triggered for: Before Build Sending email for trigger: Before Build Sending email to: [hidden email]

Re: How to pull an ECR image using Docker plugin / Pipeline (Docker BuildSlave)?

2016-06-21 Thread Zoratto Thomas
Hi, I believe you cannot specify any credentials with the docker plugin. So if your repository requires authentication (docker hub private repo for example) it won't work. You can manually pull this image on the docker host though. Not really a good solution if you ask me > Le 21 juin 2016

Re: What are the rules for Jenkins Pipeline to allocate workspaces, are ephemeral workspaces possible?

2016-06-21 Thread Antonio Muñiz
On Tue, Jun 21, 2016 at 3:20 PM, James Read wrote: > It seems that actually the Pipeline makes the whole Jenkinsfile 1x logical > job, and the node{} blocks just allow different node selections during that > job. Not. Every `node` call has its workspace (and it can be erased at any time by Jenk

pipeline and Build Token Root Plugin

2016-06-21 Thread Anton German
Hi all, Could someone provide me an example how to use Build Token Root Plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Build+Token+Root+Plugin) with jenkins-pipeline. I didn't find examples here https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples Great Thanks, Ant

Re: Jenkins Pipeline Job sthrowing Error code 126 when trying to execute a sh command

2016-06-21 Thread Craig Rodrigues
To debug the problem, would you be comforable modifying and rebuilding the Durable Task plugin? You could temporarily comment out the code that removes the script.sh and see what is going on. I had to do that before to debug problems with the durable task plugin. -- Craig On Mon, Jun 20, 2016 a

Re: Server Move Issue

2016-06-21 Thread Andrew Day
and i am currently running it as a service ("C:\Program Files (x86)\Jenkins\jenkins.exe") On Tuesday, 21 June 2016 09:41:49 UTC-4, Andrew Day wrote: > > I used the jenkins.msi installer package > > On Tuesday, 21 June 2016 08:47:45 UTC-4, Baptiste Mathus wrote: >> >> For the plugins, that's right

Re: Accessing $CHANGES from prior build job for email

2016-06-21 Thread Slide
You would have to do this using a groovy or jelly template, I highly recommend groovy over jelly. You would need to write the code to get at the build project and then get the scm changes and process them into the format you want. There is not out of the box way to do it. On Tue, Jun 21, 2016, 06:

Re: Server Move Issue

2016-06-21 Thread Andrew Day
I used the jenkins.msi installer package On Tuesday, 21 June 2016 08:47:45 UTC-4, Baptiste Mathus wrote: > > For the plugins, that's right, but depends how you install Jenkins itself. > Do you use the plain .war file, or do you use the system package (say .deb > or .rpm?). If the latter, then yo

Re: What are the rules for Jenkins Pipeline to allocate workspaces, are ephemeral workspaces possible?

2016-06-21 Thread James Read
Hi Antonio, Thanks for confirming what I thought. Of course I did think about deleteDir() inside a node{} call, but this is undesirable because we know that workspaces will be shared between any node{} elements, so I would be deleting the contents of a previous node{} block, and not necessari

Re: Accessing $CHANGES from prior build job for email

2016-06-21 Thread Antonio Hernandez
I'm exacty stuck in the same issue Please , somebody helps us! Thanks all folks El viernes, 15 de mayo de 2015, 16:21:16 (UTC+2), Dave R escribió: > > I have two projects - one for a build followed by a deployment project in > a delivery pipeline. > > In the deployment project I would like

Re: Server Move Issue

2016-06-21 Thread Baptiste Mathus
For the plugins, that's right, but depends how you install Jenkins itself. Do you use the plain .war file, or do you use the system package (say .deb or .rpm?). If the latter, then you may have installed a different version on the new server than on the old one. 2016-06-20 22:09 GMT+00:00 Andrew D

New Free Monitoring & Alerting tool for Jenkins

2016-06-21 Thread David Cohen
Hello to all Jenkins folks, I'd like to inform you that for the first time, we now provide a Free Community Edition of our performance monitoring & alerting tool for Jenkins. You can quickly get email alerts on slow Jenkins jobs, malfunctioning JVMs, slow [or overloaded] Jenkins slaves; unavail

How to pull an ECR image using Docker plugin / Pipeline (Docker BuildSlave)?

2016-06-21 Thread Marco Pas
Hi there we are tying to integrate a custom build of a docker Jenkins slave based on https://hub.docker.com/r/evarga/jenkins-slave/. We seem to hit a wall on how to pull these images from ECR into our buildslave nodes. We have create a Docker Template which needs to pull the image but we canno

Re: $changes does not send change log in email

2016-06-21 Thread Antonio Hernandez
Hi, I'm using all the tools you can imagine to send attached or just written all the changes in downstream jobs. Actually, i have 4 joined jobs and the last one is the one used to compose the email but always put "no changes" because all the changes are being missing I'm using extended email

Re: Pipeline: stash includes with git directory

2016-06-21 Thread Antonio Muñiz
This should work: node { git 'your_repo_url' stash name: 'repo', useDefaultExcludes: false } node { ws { unstash 'repo' sh 'ls -la' } } The `ws` step is just to unstash in a clean directory, it's not really necessary. On Thu, Jun 16, 2016 at 2:25 PM, Sverre Moe

Re: maven-plugin broken on 1.651.3 LTS pinned javadoc plugin

2016-06-21 Thread jpd4nt
Rolled back to 1.3 javadoc and it seems to be working fine now. -- 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 an email to jenkinsci-users+unsubscr...@googlegroups.com. To

Re: What are the rules for Jenkins Pipeline to allocate workspaces, are ephemeral workspaces possible?

2016-06-21 Thread Antonio Muñiz
Right, the workspace will be reused for the same job in the while running in the same node. You can use `deleteDir()` step as the very first call on every node block. It will clean the workspace. On Thu, Jun 16, 2016 at 4:43 PM, James Read wrote: > Hey folks, > > I went poking around in the Jen

Re: Pipeline: Fails reading build cause

2016-06-21 Thread Antonio Muñiz
You need to do all the work with non-serializable objects inside the @NonCPS annotated function and return a serializable object. In your example you are storing the result of `getLastBuildCause` outside the non-cps function. Try return a `String` there. On Tue, Jun 21, 2016 at 8:32 AM, Sverre Mo

Re: Jenkins 2.x with Github Organizational Folder and webhook Payload

2016-06-21 Thread Daniel Beck
> On 21.06.2016, at 03:31, Michael Chletsos wrote: > > I am running into an issue where I need to get the PR number for our build > process, but this is not exposed as I can see. Isn't that basically the JOB_NAME env var? -- You received this message because you are subscribed to the Google

Re: Pipeline: Stop building all branches after Branch indexing

2016-06-21 Thread Antonio Muñiz
Right, only branches with changes should be built (and new branches fall in this category). If you want to suppress automatic SCM triggering on all branches (maybe useful if you are using webhooks to trigger builds), you can use the "Suppress automatic SCM triggering" property in the Multibranch c

Re: Multibranch job - configure post build groovy event in Jenkinsfile

2016-06-21 Thread Antonio Muñiz
The build status is set normally as the build finishes successfully or not. To explicitly control de status you can use `currentBuild.result` as Arnaud said. You can set de build display name by using `currentBuild.displayName='whatever'`. On Tue, Jun 21, 2016 at 12:38 PM, Arnaud Héritier wrote:

Re: Could not add HP-ux machine as slave in jenkins

2016-06-21 Thread Zoratto Thomas
Hi, Some clues on this I think https://groups.google.com/forum/m/#!topic/gnu.emacs.help/_yMGvDDeCXc > Le 21 juin 2016 à 12:22, Thiagu Mohan a écrit : > > I am trying to add hp-ux B.11.31 host as a slave in jenkins. But getting > below error. Any clue to fix this ? > > > [06/21/16 06:17:18]

Re: Pipeline: Stop building all branches after Branch indexing

2016-06-21 Thread Arnaud Héritier
I'm surprised but job which are already existing shouldn't be rebuilt ? If this is the case I think it may be considered as a bug.. On Mon, Jun 20, 2016 at 8:51 AM, Sverre Moe wrote: > When performing branch indexing on Multibranch Pipeline I only want it to > start building the new branches tha

Re: Multibranch job - configure post build groovy event in Jenkinsfile

2016-06-21 Thread Arnaud Héritier
Hi Mike, AFAIK currentBuild.result is never set automatically in pipeline jobs. You have to explicitly set it with something like try { // do something currentBuild.result = 'SUCCESS' } catch (Exception err) { currentBuild.result = 'FAILURE' } it may explain why it is null in your post b

Re: Pipeline and Maven dependency build trigger

2016-06-21 Thread Arnaud Héritier
Hi Dan, No it isn't possible. There is no integration of the maven plugin with pipeline. This feature need is coming again and again but it is more or less broken by design in the maven plugin We should better develop a generic plugin allowing to create a new generic plugin that might be abl

Re: maven-plugin broken on 1.651.3 LTS pinned javadoc plugin

2016-06-21 Thread Arnaud Héritier
perhaps you deactivated the javadoc plugin ? Have a look at the ${JENKINS_HOME}/plugins directory to see if you have some *.disabled files ... On Tue, Jun 21, 2016 at 11:54 AM, jpd4nt wrote: > Hi. > > I was using the S3 publisher plugin > ,

Xvfb failed during running tests on Jenkins

2016-06-21 Thread Anna Filippova
Hi guys, could anybody please help me? I try to use Xvfb plugin for running selenium tests on Jenkins. Plugin is installed, Xvfb installation is configured in System settings and running of xvfb added to Job as environment step I see this in console Xvfb starting$ Xvfb -displayfd 2 -screen 0

Could not add HP-ux machine as slave in jenkins

2016-06-21 Thread Thiagu Mohan
I am trying to add hp-ux B.11.31 host as a slave in jenkins. But getting below error. Any clue to fix this ? [06/21/16 06:17:18] [SSH] Opening SSH connection to devsys12.com:22. [06/21/16 06:17:19] [SSH] Authentication successful. SSH connection reports a garbage before a command execution. Che

maven-plugin broken on 1.651.3 LTS pinned javadoc plugin

2016-06-21 Thread jpd4nt
Hi. I was using the S3 publisher plugin , which suddenly uninstalled itself breaking some of my pipe lines. I could not reinstall it as it required maven, maven could not be installed as it was missing javadoc plugin. But javadoc is insta

Re: Jenkins fails to deliver e-mails

2016-06-21 Thread S. Schmitzberger
Checked again, it is set on both Am Dienstag, 21. Juni 2016 10:51:14 UTC+2 schrieb slide: > > Can you double check that you setup the username/password in the correct > plugin's config area in the global configuration? Mailer and email-ext > reach gabber their own configuration for username/pas

Re: Jenkins fails to deliver e-mails

2016-06-21 Thread Slide
Can you double check that you setup the username/password in the correct plugin's config area in the global configuration? Mailer and email-ext reach gabber their own configuration for username/password. On Mon, Jun 20, 2016, 22:25 S. Schmitzberger < sebastian.schmitzber...@hofer.at> wrote: > I'v

When ever I run my test-case from Jenkins,I see Test Result shows repeated (two times)

2016-06-21 Thread shruthi v v
-- 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 an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com