Try script

This commit is contained in:
Michael Hansen 2022-05-04 16:11:41 -04:00
commit 42cb75bc83

6
Jenkinsfile vendored
View file

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