Created
October 14, 2020 21:52
-
-
Save jovemfelix/c2a8b52310ee5faf8158c738e623a888 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def OPS_GROUP = 'test-grup-devops' | |
def userInput = input(id: 'proceed_prd', | |
message: "Deploy em Produção? Permitido apenas para '${OPS_GROUP}'", | |
submitter: "${OPS_GROUP}", | |
parameters: [string(defaultValue: '1', | |
description: 'Número de instâncias de containers a ser provisionado', | |
name: 'containers'), | |
booleanParam(defaultValue: true, | |
description: 'Confirma se deve realizar deployment neste ambiente. Limpar caso queira evitar deploy neste ambiente.', | |
name: 'confirm')]) | |
def confirmado = userInput['confirm'] | |
def instancias = userInput['containers'] | |
echo "confirmado=${confirmado} instancias=${instancias}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment