post build event - how to get upstream project info on a downstream project - Jenkins -


in jenkins, if use post-build trigger start build

what envs available new build.

i need identify, parent builds name, build number, last successful artifacts' url etc.,

in simple words, how upstream project info on downstream project

is possible

you can use parameterized trigger plugin pass variables 1 build next. used in same way post build trigger plugin mentioned you're using already.

it defines variables passed through next job, free define own in box provided, e.g:

artefact_url=www.example.com/builds/$build_number #using variable build something=value upstream_build_name=myproject upstream_build_number=$build_number  #note shouldn't override properties set in subsequent builds! 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -