From 42cb75bc83f73e43b6d3bfb9a559e5563258be1f Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 4 May 2022 16:11:41 -0400 Subject: [PATCH] Try script --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c98342a..11df052 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,10 +62,10 @@ pipeline { git branch: 'master', credentialsId: 'devops-mycroft', url: 'https://github.com/mycroftAI/plugin-tts-mimic3' - } - dir('plugin-tts-mimic3') { - env.PLUGIN_TAG_NAME = sh(returnStdout: true, script: "git tag --sort=-creatordate | head -n 1").trim() + script { + env.PLUGIN_TAG_NAME = sh(returnStdout: true, script: "git tag --sort=-creatordate | head -n 1").trim() + } } } }