Details
-
Bug
-
Status: In Review (View Workflow)
-
Blocker
-
Resolution: Unresolved
-
None
Description
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
saman I'm suspecting that the code peculiar formatting is causing some display issues with the widget used in the Jenkins UI widget for the script approval. I have run into a similar issue with code that looks like html textarea in the Scriptlet plugin Groovy editor