Discussion:
How to use folder properties?
ZillaYT
2018-11-26 15:12:40 UTC
Permalink
I have the folder properties plugin installed, and have defined some folder
properties, e.g., key=PROJECT_NAME, value=foo. How do I use this in my jobs
that belong in the folder? I tried env.PROJECT_NAME but it doesn't find it.
Thanks!
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ea57afac-daba-4cce-830e-84fb89f97f0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ZillaYT
2018-11-26 15:32:10 UTC
Permalink
I wanted to clarify that I created a folder, and then jobs inside the
folder. I then configured the folder to have properties (e.g.,
PROJECT_NAME) that I'm trying to use in the jobs inside the folder.
Post by ZillaYT
I have the folder properties plugin installed, and have defined some
folder properties, e.g., key=PROJECT_NAME, value=foo. How do I use this in
my jobs that belong in the folder? I tried env.PROJECT_NAME but it
doesn't find it. Thanks!
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/77fdb116-d250-4c79-b65a-97d7855416b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ZillaYT
2018-11-26 20:52:41 UTC
Permalink
RTFM: https://wiki.jenkins.io/display/JENKINS/Folder+Properties+Plugin

Had to use in my Jenkinsfile
withFolderProperties {
projectName = env.PROJECT_NAME
}
Post by ZillaYT
I wanted to clarify that I created a folder, and then jobs inside the
folder. I then configured the folder to have properties (e.g.,
PROJECT_NAME) that I'm trying to use in the jobs inside the folder.
Post by ZillaYT
I have the folder properties plugin installed, and have defined some
folder properties, e.g., key=PROJECT_NAME, value=foo. How do I use this in
my jobs that belong in the folder? I tried env.PROJECT_NAME but it
doesn't find it. Thanks!
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b9acdc5d-eace-4728-8c15-9196271f24ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...