Hi Rupali, readFile returns a String object with the entire contents of the file - so you can parse it using stand java/groovy APIs. .e.g. you can chain a StringReader and Properties https://docs.oracle.com/javase/7/docs/api/java/util/Properties.html#load(java.io.Reader) http://docs.oracle.com/javase/8/docs/api/java/io/StringReader.html#StringReader-java.lang.String- pseudo code... def str = readFile name: 'somefile', charset : 'utf-8' def sr = new StringReader(str) def props = new Properties() props.load(sr) def foobar = props.getProperty('somepropname') /James
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d50d9908-49e8-478d-8151-f8f19b804790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.