Is it possible to pass a Build number via http REST command to the server to start new build using this passed in build number?


0down votefavorite


I tried something like that:
http://testuser:testpassword@localhost/httpAuth/action.html?add2Queue=bt10&name=xbuildnum&value=4.5.6786.4
I created a system property called xbuildnum and set the BuildFormat of this particular build type to %system.xbuildnum%.
Unfortunately it seemed like the build wouldn't use the build number that I passed in via URL.
Is this do-able at all, and if so, how?

1 comment
Comment actions Permalink

We do something similar here and it works for us.

The differences we have are you need to use system.name=system.xbuildnum&system.value=4.5.6786.4

And you need to make sure the build configuration has that build parameter added (we just use a default value).

Hope that helps.

Dave

0

Please sign in to leave a comment.