Regarding build number customization for hudson jobs [message #1182280] |
Tue, 12 November 2013 00:00  |
Eclipse User |
|
|
|
Hi Experts,
We use Hudson job for our daily builds and wanted to have the same build number from SVN as the Hudson job number.
To achieve this we planned to have two separate jobs where the first job do generate the build number and commit that in SVN and the second job do the actual build. So we need to enforce Hudson to use the generated build number as the job number. We tried two options for this,
1) Modified hudson/jobs/job2/nextBuildNumber with the buildnumber value from SVN
This option is not working as it required a Hudson reload to load the properties from Disc. We need to do a manual reload after the first job, which is not possible as we need to add the second job as a dependent job for the first one and trigger it automatically. I even tried a reload using CLI as part of the first job, but then it's not triggering dependent job.
Is there a way to force the second job to load the properties from disc?
2) Used the post-build action "Trigger parameterized build on other projects" option on the first Job and choose the option to add parameters from properties file. Then populated SVN build number in this properties file as property BUILD_NUMBER=number. But still the second job is not picking this number.
Is the property name that I am using is correct?
Kindly let me know if there is better way to do this.
Very much appreciate any help.
Thanks,
Martin
|
|
|
|
|
Re: Regarding build number customization for hudson jobs [message #1196113 is a reply to message #1183840] |
Tue, 19 November 2013 03:51  |
Eclipse User |
|
|
|
Hi Winston,
Seems customizing the build number is not very obvious.
I am thinking of an alternate approach where I can populate the actual build number from SVN in to a custom variable for the hudson job and include this information in the email notifications about the build.
So I would like to know whether it is possible to dynamically a load property file , while a job is running. If this is possible then as part of the hudson build job I can get the SVN build number and populate that in some property file in the hudson server. And then include this property value in the build notification email
Very much appreciate any help.
Thanks,
Martin
|
|
|
Powered by
FUDForum. Page generated in 0.04292 seconds