active choice
parent
198ff7fffb
commit
3b4d690e14
|
|
@ -1,11 +1,16 @@
|
||||||
properties([parameters([[$class: 'DynamicReferenceParameter', choiceType: 'ET_FORMATTED_HTML', name: 'General', omitValueField: false, randomName: 'choice-parameter-517572555514769', referencedParameters: '', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], oldScript: '', sandbox: false, script: ''], script: [classpath: [], oldScript: '', sandbox: true,
|
properties([parameters([[$class: 'DynamicReferenceParameter', choiceType: 'ET_FORMATTED_HTML', name: 'General', omitValueField: false, randomName: 'choice-parameter-517572555514769', referencedParameters: '', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], oldScript: '', sandbox: false, script: ''], script: [classpath: [], oldScript: '', sandbox: true,
|
||||||
script: '''
|
script: '''
|
||||||
def verCode = UUID.randomUUID().toString()
|
def generator = { String alphabet, int n ->
|
||||||
test="hallo"
|
new Random().with {
|
||||||
|
(1..n).collect { alphabet[ nextInt( alphabet.length() ) ] }.join()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
randomValue = generator( (('A'..'Z')+('0'..'9')+('a'..'z')).join(), 9 )
|
||||||
|
|
||||||
vappHtml = """
|
vappHtml = """
|
||||||
<ul style="list-style-type: none">
|
<ul style="list-style-type: none">
|
||||||
<li style="padding: 5px">
|
<li style="padding: 5px">
|
||||||
<label>${verCode}</label>
|
<label>${randomValue}</label>
|
||||||
<input type="text" class="jenkins-input" name="value">
|
<input type="text" class="jenkins-input" name="value">
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue