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() + } } } }