Jenkins传值

x=1

echo x=$x >> $JENKINS_HOME/jobs/$JOB_NAME/builds/$BUILD_ID/my.properties

 

xx=$(grep "x=" $JENKINS_HOME/jobs/$JOB_NAME/builds/$BUILD_ID/my.properties | sed 's/.*=//')

echo $xx

Jenkins传值_第1张图片

你可能感兴趣的:(Jenkins)