Re: Parallel from build flow plugin never ends

2016-05-05 Thread alexmkv
> > Check if your builds are merged with already queued builds Can you explain, how this can be checked? identical parameters could cause this. All jobs for now must have different params set. There are three parameters, but their combination is unique in parent job. Parent jobs executed

Re: pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Mike Caspar
Awesome. This worked great. I managed to simply wrap a try around my whole file and then a catch/finally for success and failure. Craig, I'll look at the example. Thanks I did figure out that I needed to use the error tag with some text during my catch block and that properly set it the

Re: pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Craig Rodrigues
Hi, Yes, in your pipeline script, you need to catch exceptions for what you want to do. Be careful, if the build fails, you will need to set currentBuild.status and re-throw the exception in order for the build to be marked as failed. Look at this example which I wrote:

Re: pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Mike Caspar
Hi, Things I am trying to define as post-action items (pass or fail). slack update email html publish of test results ssh of build results to a remote ssh ironmq-notifier of results. http post of JSON data to remote testing services (ie: ghostscript and runscope) (stuff like that). On

Re: pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Mike Caspar
Thanks. I like the try/catch/finally option if that would work. I have setup a Pipeline Organization to auto-import my Scripts. it sets up all the necessary repos to build each one. The problem occurs that I have no way to set the typical "email on success/email on failure" (I am also a

Re: pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Baptiste Mathus
Hi, There's no such concept in pipeline. As Jesse explained: "the idea is that a Pipeline script is just a script: it runs the stuff you specified if and when you want it to. Whereas plugins contributing options to freestyle projects hardcode a lot of logic about when and whether something will

pipeline post-action in Jenkinsfile ?

2016-05-05 Thread Mike Caspar
Hi there, I am converting a series of jobs to pipeline jobs. I am not having any luck in finding the post-action stage or finding a way to do this. a 'step' isn't appropriate to the situation (as it won't trigger on failed). If someone knows the answer to this, I would be happy to go over to

Re: How can semaphores be used to avoid race conditions in Jenkins?

2016-05-05 Thread Robert Kruck
On Thursday, May 5, 2016 at 7:44:47 AM UTC-5, Robert Kruck wrote: > > How can semaphores be used to avoid race conditions in Jenkins? > > We have Jenkins projects that apply StarTeam labels to file versions. > > All labeling for each software package must be completed, before going on > to

Stop job building before dependency, on svn updates

2016-05-05 Thread Sean Dawson
Apologies if this is simple / covered elsewhere but I couldn't figure out how to get this setup correctly. We have two maven jobs where one has dependencies on the other, lets call them A and B. If there's an svn checkin to both, the second one seems to often build first, and fails. We

Re: Unexpected termination of the channel

2016-05-05 Thread 'Jordi Andreu Miralles' via Jenkins Users
Hi, the stacktrace that I can see in the job log: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-usersjava.lang.NullPointerException at

Re: Workflow manual input step: how do I use it the right way?

2016-05-05 Thread Guest
Even if I'm using it outside the node block it still consumes some resources on master - am I right? I think so, because I'm unable to start second pipeline instance while the first one is waiting for input. So my question is: would it possible to completely stop pipeline execution (serialize

RE: How can semaphores be used to avoid race conditions in Jenkins?

2016-05-05 Thread Matthew.Webber
You probably want the https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin Matthew From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Robert Kruck Sent: 05 May 2016 13:45 To: Jenkins Users Subject: How can semaphores be used to

How can semaphores be used to avoid race conditions in Jenkins?

2016-05-05 Thread Robert Kruck
How can semaphores be used to avoid race conditions in Jenkins? We have Jenkins projects that apply StarTeam labels to file versions. All labeling for each software package must be completed, before going on to label another software pages. Is there a Jenkins plugin that can reliably

Unexpected termination of the channel

2016-05-05 Thread 'Jordi Andreu Miralles' via Jenkins Users
Hi, we are suffering in the last days timeouts and sudden death of our slave intances in Amazon EC2. I'm observed that the Response Time in Node list page is over 3ms and later we get "Time out for last n try" Finally in the node status page we get an Exception: java.io.IOException: