- Want to inject the secret settings.xml at folder level to have it available for the jobs inside the folder
- CloudBees Jenkins Enterprise
Note: This does not work in CloudBees Jenkins Operations Center. This only works with CloudBees Jenkins Enterprise and Jenkins LTS/OSS releases.
Following plugins need to be installed in your CloudBees Jenkins Enterprise instance:
Then, let’s say you have a folder called maven-folder in your instance.
As you might already know, you are able to use the credential plugin at folder level. So all you need to inject a secret file.
Now, at job level you need to create a bind in which you will specify the variable you would like to use.
Finally, the only thing we still need to do is to tell maven to use the secret file.
Now, when you build you can see the secret file is correctly injected.