I have an issue with my pipeline. I have an XML file in my project repo and I will like to read this file and change values after my checkout stage.
verNum.xml
<Version>1.0.0 </Version>
and my jenkinsfile
node {
stage ('checkout') {
.......
}
stage ('readfile') {
readFile("verNum.xml")
}
}
I would increment the last digit of the version number with my build number. say something like this 1.0.${BUILD_NUMBER}
.
Your help is highly welcomed.