Advertisement
PandaAcademy

Jenkinsfile_parameters

May 28th, 2022 (edited)
1,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.46 KB | None | 0 0
  1.     parameters {
  2.         string(name: 'backendDockerTag', defaultValue: 'latest', description: 'Backend docker image tag')
  3.         string(name: 'frontendDockerTag', defaultValue: 'latest', description: 'Frontend docker image tag')
  4.     }
  5.  
  6.  stage('Show version') {
  7.             steps {
  8.                 script{
  9.                     currentBuild.description = "Backend: ${backendDockerTag}, Frontend: ${frontendDockerTag}"
  10.                 }
  11.             }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement