詹金斯总是跳过下游工作

时间:2019-08-01 03:01:31

标签: jenkins jenkins-pipeline jenkins-plugins

我遇到有关Jenkins Pipeline Maven插件(https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin)的问题。即使选中了“每当构建SNAPSHOT依赖项时都进行构建”,它始终会跳过下游作业。

以下是下游监听器的FINER日志(org.jenkinsci.plugins.pipeline.maven.listeners.DownstreamPipelineTriggerRunListener):

upstreamPipeline (<upstream build>, visibleByDownstreamBuildAuth: false),  downstreamPipeline (<downstream pipeline>, visibleByUpstreamBuildAuth: true), upstreamBuildAuth: org.acegisecurity.providers.UsernamePasswordAuthenticationToken@1f: Username: <user>; Password: [PROTECTED]; ....


Skip triggering of <downstream pipeline> by <upstream pipeline> #<build>: downstreamVisibleByUpstreamBuildAuth: true, upstreamVisibleByDownstreamBuildAuth: false

visibleByDownstreamBuildAuth的值始终为false。有什么想法可以实现这个价值吗?

Jenkins也有此疑难解答指南,但我的设置已经正确。 https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-Mydownstreampipelinesdon'tgettriggeredevenifIuse%22BuildwheneveraSNAPSHOTdependencyisbuilt%22

先谢谢您。

0 个答案:

没有答案