show which repo triggered the pipeline. Multi sourced pipeline

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

show which repo triggered the pipeline. Multi sourced pipeline

Simone Iaci
Hi,
in our environment running Jenkins Enterprise 2.73.32.0.1 and GitHub Branch Source Plugin 2.2.6, I have a Jenkins Pipeline triggered by multiple repositories. Any commit on any repo will trigger the Jenkins pipeline.

Inside this pipeline, I need to do some steps on the repo just committed. The problem I have, is I'm not able to understand in the pipeline which repo triggered the pipeline, therefore I can't selectively run all my inner steps on the selected repo. Any hint on how to achieve that? 

I've tried with the env variable env.GIT_URL but with no luck.

Thank you
Simone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0820024f-5df0-473d-a2eb-c85fece4b90a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.