From 7c896673eea008283f6b24a2a78aed2b7922c581 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 4 May 2022 16:14:18 -0400 Subject: [PATCH] another try --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e5dc6d5..ffd162f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,7 +55,6 @@ pipeline { credentialsId: 'devops-mycroft', url: 'https://github.com/mycroftAI/mimic3.git' - env.MIMIC3_TAG_NAME = sh(returnStdout: true, script: "git tag --sort=-creatordate | head -n 1").trim() // Mycroft TTS plugin dir('plugin-tts-mimic3') { @@ -64,7 +63,10 @@ pipeline { url: 'https://github.com/mycroftAI/plugin-tts-mimic3' } - env.PLUGIN_TAG_NAME = sh(returnStdout: true, script: "cd plugin-tts-mimic3 && git tag --sort=-creatordate | head -n 1").trim() + script { + env.MIMIC3_TAG_NAME = sh(returnStdout: true, script: "git tag --sort=-creatordate | head -n 1").trim() + env.PLUGIN_TAG_NAME = sh(returnStdout: true, script: "cd plugin-tts-mimic3 && git tag --sort=-creatordate | head -n 1").trim() + } } }