Re: Load properties from a properties file and make it available anywhere in the pipeline

2017-05-03 Thread Robert Sandell
I've gotten similar requests before to have some type of similar behavior/mode as readTrusted, so maybe it gets implemented sometime in the future. /B On Wed, May 3, 2017 at 2:38 PM, ishan jain wrote: > Thanks a lot Robert, that solved my problem. You are right, i should not > whitelist those m

Re: Load properties from a properties file and make it available anywhere in the pipeline

2017-05-03 Thread ishan jain
Thanks a lot Robert, that solved my problem. You are right, i should not whitelist those methods just load properties fille. Your plugin seems to be great, i will invest some time in learning other methods as well. Also, do you think i can load the properties outside of a stage somehow ? I hate

Re: Load properties from a properties file and make it available anywhere in the pipeline

2017-05-03 Thread Robert Sandell
The File constructor is blacklisted so that users don't try to do the mistake that you are doing. The pipeline code is running on the master (only the steps themselves are actually running on the agent), so when you create a new file pointing it to $workspace it is most likely not there on the m

Load properties from a properties file and make it available anywhere in the pipeline

2017-05-02 Thread ishan jain
Hi all, My requirement is simple, i just want to externalize some 'values' to make my Jenkinsfile more re usable and for this i need to* load the properties from a file which is going to be right next to Jenkinsfile, and make sure that these properties are available anywhere in the code*. I am