Skip to content

Commit

Permalink
Update Jenkinsfile-test
Browse files Browse the repository at this point in the history
  • Loading branch information
G33tha authored Apr 1, 2020
1 parent 2ee4bd4 commit 3682bf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile-test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pipeline {
stages {
stage('Deploy') {
when { tag "tag-*" }
jobName = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-1].trim()
println(jobName)
steps {
echo 'Deploying only because this commit is tagged.....'
echo 'hellow world'
Expand Down

0 comments on commit 3682bf0

Please sign in to comment.