From 3682bf049120fade718de0796bc2e45f76ba19a8 Mon Sep 17 00:00:00 2001 From: G33tha Date: Wed, 1 Apr 2020 10:43:37 +0530 Subject: [PATCH] Update Jenkinsfile-test --- Jenkinsfile-test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile-test b/Jenkinsfile-test index 68ef675..73c3ebd 100644 --- a/Jenkinsfile-test +++ b/Jenkinsfile-test @@ -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'