Atualizar 'PipelineTestJenkins'

master
Alberto Trevezani 2020-01-22 18:17:59 +00:00
parent eb8bc6b66d
commit 5a800a48e5
1 changed files with 18 additions and 0 deletions

View File

@ -5,9 +5,27 @@
pipeline {
agent any
parameters {
string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
text(name: 'BIOGRAPHY', defaultValue: '', description: 'Enter some information about the person')
booleanParam(name: 'api-test-1', defaultValue: true, description: 'API Test 1')
booleanParam(name: 'api-test-2', defaultValue: true, description: 'API Test 2')
choice(name: 'CHOICE', choices: ['One', 'Two', 'Three'], description: 'Pick something')
password(name: 'PASSWORD', defaultValue: 'SECRET', description: 'Enter a password')
}
stages {
stage('1') {
steps {
if (${params.apitest1}) {
echo "Teste 1"
}
sh 'exit 0'
}
}