Get parent's BUILD_NUMBER from child script in Hudson -


i configuring hudson job shell script. possible current job number environment variable 'build_number'. wondering if possible number of 'parent' (i.e. job triggered current job), or check if current job triggered manually?

thanks.

by default hudson doesn't have environment variable contains parent job's build number.

you can use parameterized trigger plugin.

this plugins allows configure child jobs , provides additional env variables can used child jobs. can provide parent jobs build number child jobs using plugin.

triggered_build_number_project name env variable provided plugin contains last build number of "project name" . project name can parent job name.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -