*env.JOB_NAME* Is the pipeline name suffixed with the branch name.


So *env.JOB_NAME* will be <jenkins_pipeline_name>_<my_branch>


How can I just get the pipeline name and store it in a var in the 
environment{} block at the top of my jenkinsfile to use through the file?

I don't want to resort to scripted pipeline just the declarative.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/238f1f2e-7ea5-42ab-b907-81cd7c0ca876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to