AI智能
改变未来

pipeline parameters 参数化构建&&通过UI创建

通过UI创建

pipeline 脚本创建

pipeline{agent anyparameters {string(name: \'userName\', defaultValue: \'Anthony\', description: \'please give a name\')choice(name: \'version\', choices: [\'1.1\', \'1.2\', \'1.3\'], description: \'select the version to test\')booleanParam(name: \'is_boy\', defaultValue: true, description: \'you is boy or not\')}stages {stage(\'test\') {steps{script {sh \"echo 111111\"sh \"echo $version -mmmmmmmmmmmmmmmmmmm\"}}}}}

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » pipeline parameters 参数化构建&&通过UI创建