-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Blocker
-
Component/s: active-choices-plugin
My reactive choice parameter groovy script is followingÂ
def command = ["/bin/bash", "-c", "git ls-remote --tags " + repourl]
def process = command.execute()
process.waitFor()
def t1 = []
def result = process.in.text.tokenize('
n')
for(i in result)
def tagName = i.split()[1].replaceAll('\\^{
}','').replaceAll('refs/tags/', '')
t1.add(tagName)
}
return t1
Â
But when I check this script in in-process script approval it looks like thisÂ
def command = ["/bin/bash", "-c", "git ls-remote --tags " + repourl]
def process = command.execute()
process.waitFor()
def t1 = []
def result = process.in.text.tokenize("
")
for(i in result)
def tagName = i.split()[1].replaceAll('^{}','').replaceAll('refs/tags/', '')
t1.add(tagName)
}
And when I approved it this script contains errorÂ
I am blocked hereÂ