Jenkinsfile calls a python script that incremented the version number. I was wondering if there was a way to write the incremented version number in the description "currentBuild.description" for easy viewing.
My python script knows the version number of this, but the difficulty is that I don't know how to pass it to Jenkinsfile, or how Jenkinsfile captures it.
def ret = sh(returnStdout: true, script: "python test.py")
I have tried this method, but it is not suitable for me, because I need to display the specific execution steps to the Console Output, If I used this method, my output would all go into the variable 'ret'.
Of course, I could print the 'ret' to the Console Output again, but doing so would be awkward, and it would be weird if python had an exception
thanks, I hope to get your help.