Hello,

Could you be using the Jenkins Authorize Project Plugin 
<https://plugins.jenkins.io/authorize-project> and impersonate your builds 
with a user different from SYSTEM? What is the "<user>" displayed in the 
log message "upstreamPipeline... Username: <user>"?

When not using the  Jenkins Authorize Project Plugin 
<https://plugins.jenkins.io/authorize-project>, the user used to run the 
upstream pipelines is SYSTEM as we can see in the sample below

upstreamPipeline (plugins/pipeline-maven-plugin/dependency-graph/my-jar, 
> visibleByDownstreamBuildAuth: true),  downstreamPipeline 
> (plugins/pipeline-maven-plugin/dependency-graph/my-war-multibranch/master, 
> visibleByUpstreamBuildAuth: true), *upstreamBuildAuth*: 
> org.acegisecurity.providers.UsernamePasswordAuthenticationToken@1f: 
> *Username: 
> SYSTEM*; Password: [PROTECTED]; Authenticated: false; Details: null; Not 
> granted any authorities


Cyrille


On Thursday, August 1, 2019 at 9:26:34 AM UTC+2, drpm wrote:
>
> I'm having an issue regarding Jenkins Pipeline Maven Plugin 
> (*https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin 
> <https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin>*). It 
> always skips the downstream jobs even if "*Build whenever a SNAPSHOT 
> dependency is built*" is checked.
>
> Here's the FINER logs for Downstream listener(
> *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*
>
> ---
>
> The value for *visibleByDownstreamBuildAuth* is always false. Any ideas 
> how to make that value true?
>
> Also Jenkins has this troubleshooting guide but my settings are already 
> correct. 
> *https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-Mydownstreampipelinesdon'tgettriggeredevenifIuse%22BuildwheneveraSNAPSHOTdependencyisbuilt%22
>  
> <https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-Mydownstreampipelinesdon'tgettriggeredevenifIuse%22BuildwheneveraSNAPSHOTdependencyisbuilt%22>*
>
> Thank you in advance. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3844ab1a-5d02-4338-bc3e-46aae255c384%40googlegroups.com.

Reply via email to