How to change the Build Label format
Is it possible to define a custom Build Label formatting ?
We us a: <main>.<major>.<minor>-<build> style number (e.g. 01.00.21-0033) Is there anyway to define this type of build number so the build machine automatically labels the builds the way we would like. |
5 answers
What I do is to generate build artifacts that have a filename in the custom format that I want, similar to what you describe. I store the build artifacts in the Build Result. But I leave the Build Result in its native label scheme.
|
I agree there are many ways to create our own label, but it would be nice to use the same label for the build log, so things match, especially when you are looking at a list of builds.
|
See enhancement request 113599: Support property to specify build label format and the workaround mentioned there.
Even with that, there's no notion currently of a build number, just the timestamp (or possibly the build result UUID, but humans shouldn't be subjected to those). |
Thanks for the information, I have tried the workaround and this is working great, we use a custom tool to read our "label.cpp" file, increment the build number, update the time/date stamp, re-write the "label.cpp" file as well as a "label.cpp.properties" file which is then used to transfer the new label back to the build system.
So far, all is working great... |
Great, glad to hear. If there's anything you think we can provide in our tooling to make this easier for you, please feel free to open enhancement requests.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.