It looks like JENKINS-45443 , which includes a comment
The pipeline does not support the upstream / downstream system, partly due to technical limitations, partly due to the fact that there is no static configuration of tasks that would make this possible, except by checking the latest metadata of the assembly.
But he also offers a workaround:
while the solution is still ongoing, I am including our workaround here. It is based on the rtp (Rich Text Publisher) plugin, which you must install to make it work:
At the end of our Jenkins file and after the job starts, we will wait for it to complete. In this case, build() returns the object used to complete the job downstream. We get information from him.
Warning: the getAbsoluteUrl() function is critical. Use it at your own peril and risk!
def startedBld = build( job: YOUR_DOWNSTREAM_JOB, wait: true, // VERY IMPORTANT, otherwise build () does not return expected object propagate: true ) // Publish the started build information in the Build result def text = '<h2>Downstream jobs</h2>Started job <a href="' + startedBld.rawBuild.getAbsoluteUrl () + '">' + startedBld.rawBuild.toString () + '</a>' rtp (nullAction: '1',parserName: 'HTML', stableText: text)
This issue is part of JENKINS-29913 , discovered over the past two years:
Currently, DependencyGraph limited to AbstractProject , which makes it impossible for Workflow to participate in an up / down relationship (in cases where a task chain is required, for example, due to security restrictions).
It refers to JENKINS-37718 's RFE (Request for Enhancement), based on another (unanswered) Stack Overflow Question .