Skip to content

Instantly share code, notes, and snippets.

@marcellodesales
Created March 6, 2019 00:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marcellodesales/edb951742ee344de70340809333f790a to your computer and use it in GitHub Desktop.
Save marcellodesales/edb951742ee344de70340809333f790a to your computer and use it in GitHub Desktop.
Example of Jenkinsfile with icons for the list of parameters
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