Applications Google
Menu principal

Post a Comment On: $>. Alex Lea's Blog

"Setting the Hudson/Jenkins next build number programatically"

2 Comments -

1 – 2 of 2
Blogger Gilles said...

Great post, exactly what I needed!
The following can save a few minutes to anyone wanting to use a shell command to bump the build # of another jenkins job:

bn=`expr $BUILD_NUMBER + 1`
curl --user "user:pass" --data "nextBuildNumber=$bn" --header "Content-Type: application/x-www-form-urlencoded" http://myhudsonserver:8080/job/myhudsonjobname/nextbuildnumber/submit

19 January 2012 at 09:10

Anonymous Anonymous said...

If you want to change build number via nextBuildNumber file you should "Reload Configuration from Disk" from "Manage Jenkins" page.

30 October 2012 at 02:37

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot