码迷,mamicode.com
首页 > 其他好文 > 详细

jenkins input 框

时间:2020-07-16 21:04:26      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:ram   name   cap   checkbox   some   help   val   workflow   perl   

node {
stage ‘S1‘

// Define an input step and capture the outcome from it.
def outcome = input id: ‘Run-test-suites‘,
message: ‘Workflow Configuration‘,
ok: ‘Okay‘,
parameters: [
[
$class: ‘BooleanParameterDefinition‘,
defaultValue: true,
name: ‘Run test suites?‘,
description: ‘A checkbox option‘
],
[
$class: ‘StringParameterDefinition‘,
defaultValue: "Hello",
name: ‘Enter some text‘,
description: ‘A text option‘
],
[
$class: ‘PasswordParameterDefinition‘,
defaultValue: "MyPasswd",
name: ‘Enter a password‘,
description: ‘A password option‘
],
[
$class: ‘ChoiceParameterDefinition‘, choices: ‘Choice 1\nChoice 2\nChoice 3‘,
name: ‘Take your pick‘,
description: ‘A select box option‘
]
]

stage ‘S2‘

// Echo the outcome values so they can be checked fro in the test. This will help
// verify that input submit/proceed worked properly.
echo "P1: ${outcome.get(‘Run test suites?‘)}"
echo "P2: ${outcome.get(‘Enter some text‘)}"
echo "P3: ${outcome.get(‘Enter a password‘)}"
echo "P4: ${outcome.get(‘Take your pick‘)}"
}

jenkins input 框

标签:ram   name   cap   checkbox   some   help   val   workflow   perl   

原文地址:https://www.cnblogs.com/pythonwork/p/13323988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!