Created
March 6, 2019 00:46
-
-
Save marcellodesales/edb951742ee344de70340809333f790a to your computer and use it in GitHub Desktop.
Example of Jenkinsfile with icons for the list of parameters
This file contains 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
pipeline { | |
options { | |
// Build auto timeout | |
timeout(time: 15, unit: 'MINUTES') | |
} | |
// https://jenkins.io/doc/book/pipeline/syntax/#parameters | |
parameters { | |
choice( | |
name: 'DeployPhase', | |
choices: ['development', 'verification', 'release'], | |
description: 'π Deployment Phase to Trigger') | |
choice( | |
name: 'PhaseGroup', | |
choices: ['dev β¬ development phase', | |
'qal β¬ verification phase', | |
'prf β¬ verification phase', | |
'e2e β¬ release phase', | |
'prd β¬ release phase'], | |
description: 'π Deployment Environment to Deploy') | |
booleanParam( | |
name: 'RunTests', | |
defaultValue: true, | |
description: 'π Execute all the test cases') | |
booleanParam( | |
name: 'DockerPushToRegistry', | |
defaultValue: true, | |
description: 'π³ Push docker image to Registry') | |
booleanParam( | |
name: 'PublishBinaryToRepository', | |
defaultValue: false, | |
description: 'π¦ Publish binaries to Nexus') | |
booleanParam( | |
name: 'TriggerDeployToKubernetes', | |
defaultValue: true, | |
description: 'π’ Make GitOps commit to Deploy Repo') | |
booleanParam( | |
name: 'CollectPublishTestReports', | |
defaultValue: true, | |
description: 'π Collect and Publish test reports') | |
booleanParam( | |
name: 'RunDebugSettingsSteps', | |
defaultValue: false, | |
description: 'π¦ Executes Settings steps for debug') | |
} | |
agent { | |
kubernetes { | |
label kubernetesLabel | |
defaultContainer 'jnlp' | |
... | |
... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment