简体   繁体   中英

How to get $CHANGES from upstream Jenkins job?

At the moment I trigger a downstream build the $CHANGES variable is empty (though I have changes, once build is completed changes are displayed.

I'm trying to pass this variable to the downstream job as one of the predefined parameters and no wonder it receives nothing.

How can I pass upstream changes to a downstream project?

Display Upstream Changes is a Publisher, and needs to be enabled on a per-project basis in the Post-Build section of the job config. Once enabled, all subsequent builds will show the changes from upstream jobs on the build summary page (NOT the Recent Changes page!) https://wiki.jenkins-ci.org/display/JENKINS/Display+Upstream+Changes+Plugin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM