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. -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ed511a5d-a023-447f-9686-8a664cb193b9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.