Re: Jenkinsfile: How to iterate a properties file without having an "java.io.NotSerializableException: java.util.Hashtable$Entry" error

2016-10-13 Thread Sverre Moe
Put it in a method annotated with @NonCPS torsdag 13. oktober 2016 11.18.12 UTC+2 skrev eid badr følgende: > > Hi > > in jenkinsFile.groovy I want to iterate over a properties file, but I > always get an error > how can it be done properly with no error? > > node('master') { > Properties

Jenkinsfile: How to iterate a properties file without having an "java.io.NotSerializableException: java.util.Hashtable$Entry" error

2016-10-13 Thread eid badr
Hi in jenkinsFile.groovy I want to iterate over a properties file, but I always get an error how can it be done properly with no error? node('master') { Properties properties = new Properties() properties.load(new FileInputStream("${env.JENKINS_HOME}\\properties\\${file}"))

Jenkinsfile: How to iterate a properties file without having a "java.io.NotSerializableException: java.util.Hashtable$Entry" error

2016-10-13 Thread eid badr
Hi in my jenkinsFile I want to iterate over a properties file, but I always get an error how can it be done properly with no error? node('master') { Properties properties = new Properties() properties.load(new FileInputStream("${env.JENKINS_HOME}\\properties\\${file}"))