Re: Prevent incrementing build number on failures

2013-09-06 Thread Jes Struck
if the goal is to convience them i think you should go an explain them why this is better, both this single difference but also why they should love Jenkins and be glad that they had CruiseControl up until now 2013/9/5 Edwin Castro <0ptikgh...@gmx.us> > On 9/5/13 7:25 AM, Volodymyr Kostyrko wro

Re: Prevent incrementing build number on failures

2013-09-05 Thread Peter Soncek
Thanks for the information. I will take a look at the plugin and see if we can take advantage of it somehow. Otherwise, I will see if I can impose this change on my group without too much uproar. Peter On Thursday, September 5, 2013 9:25:57 AM UTC-5, Volodymyr Kostyrko wrote: > > 05.09.2013 1

Re: Prevent incrementing build number on failures

2013-09-05 Thread Edwin Castro
On 9/5/13 7:25 AM, Volodymyr Kostyrko wrote: > If you need to count "good" build maybe you need to look at Version > Number Plug-In? > (https://wiki.jenkins-ci.org/display/JENKINS/Version+Number+Plugin) It > can create your own $VERSION based on how many successful builds were > in total, today or

Re: Prevent incrementing build number on failures

2013-09-05 Thread Volodymyr Kostyrko
05.09.2013 16:36, peterman1002 wrote: Hello, I am new to Jenkins and trying to setup my build environment. I have noticed that when a build fails, the build number is still incremented. How can I prevent Jenkins from doing this? I'm not here to start a debate on whether that is the correct beh

RE: Prevent incrementing build number on failures

2013-09-05 Thread Matthew.Webber
>> But if you really what to do this, i think it can be done by hacking the >> file placed >> $hudson/jobs//nextBuildNumber in the end of you build if you now >> it failed, Don’t do that. Jenkins code assumes that the number increases with each run (pass or fail). If you invalidate that assumpt

Re: Prevent incrementing build number on failures

2013-09-05 Thread Peter Soncek
I will see if I can convince my group that this behavior is intended and see if they can live with it. I am just sick of the old Cruise Control application that hasn't been updated in like 5 years. Peter On Thursday, September 5, 2013 9:12:46 AM UTC-5, matthew...@diamond.ac.uk wrote: > > >> B

Re: Prevent incrementing build number on failures

2013-09-05 Thread Peter Soncek
Thank you for your replies. We are trying to migrate from Cruise Control, so there a build failure did not receive a build number. I am trying to mimic some Cruise Control behavior to help convince my group to migrate. If too many things are different, I don't think I will get approval. Pete

Re: Prevent incrementing build number on failures

2013-09-05 Thread Jes Struck
I must claim that i think you are going in the wrong direction. But if you really what to do this, i think it can be done by hacking the file placed $hudson/jobs//nextBuildNumber in the end of you build if you now it failed, this would probably work best if implemented in groovy where you have acc

Re: Prevent incrementing build number on failures

2013-09-05 Thread Mark Waite
You can't. At least, you can't reuse the same job number for a later build because the job number uniquely identifies the results of that job and is used to store the results of that job in the file system. If you want a monotonically increasing number which only increases when you successfull

Prevent incrementing build number on failures

2013-09-05 Thread peterman1002
Hello, I am new to Jenkins and trying to setup my build environment. I have noticed that when a build fails, the build number is still incremented. How can I prevent Jenkins from doing this? I'm not here to start a debate on whether that is the correct behavior or not. I just want to know h