Saturday, May 25, 2019

how to read properties file from jenkins pipeline script



test.properties
Monday=abcdef
Tuesday=kfgh

def props = readProperties  file:'/var/lib/jenkins/jobs/abc/test.properties'
def Var1= props['Monday']
def Var2= props['Tuesday']
echo "Var1=${Var1}"
echo "Var2=${Var2}"
Plugin

Reference

No comments:

Post a Comment