You can use the Parameterized Trigger Plugin to pass variables from one build to the next. It is used in much the same way as the Post Build Trigger plugin you mentioned you're using already.
It defines some variables that are passed through to the next job, but you are free to define your own in the box provided, e.g:
ARTEFACT_URL=www.example.com/builds/$BUILD_NUMBER #using another variable from this build
#note that you shouldn't override any properties likely to be set in subsequent builds!
Asked in February 2016Viewed 2,778 timesVoted 11Answered 1 times