Pass groovy variable to shell script

前端 未结 5 2146
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 13:38

I just started learning groovy.I want to pass the svnSourcePath and svnDestPath to shell script in the svn copy command. But URL not rendered.

node {
 stage          


        
5条回答
  •  孤街浪徒
    2020-12-06 13:57

    added the single quotes and plus operater('+ variable +') around the variable. Now it is working

    svn copy '''+svnSourcePath+' '+svnDestPath+''' -m 'promote dev to test' --username $SVN_USER --password $SVN_PWD '''
    

提交回复
热议问题