How to get svn version number from checkout for use in dsl

前端 未结 7 1862
南方客
南方客 2021-01-05 03:06

I created a pipeline job and would like to get the svn version number to enable further downstream processing in a call to a shell script. I am using a pipeline script simi

7条回答
  •  执笔经年
    2021-01-05 03:42

    I think one of the best choice can be use a simple little "groovy console script" to get the revision number then put into a Jenkins variable..

    Something like this to give you an idea: Link

    Take also a look at this question: Link

提交回复
热议问题