From 5a800a48e577ff3e76ebd7c0f3406432ae595344 Mon Sep 17 00:00:00 2001 From: Alberto Trevezani Date: Wed, 22 Jan 2020 18:17:59 +0000 Subject: [PATCH] Atualizar 'PipelineTestJenkins' --- PipelineTestJenkins | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/PipelineTestJenkins b/PipelineTestJenkins index 3898f15..d69f322 100644 --- a/PipelineTestJenkins +++ b/PipelineTestJenkins @@ -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' } }