jenkins/common: put yocto env loading and src-rev handling in one command

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-10-11 13:13:19 +02:00
parent 9fe49c131b
commit c459438f49
1 changed files with 1 additions and 2 deletions

View File

@ -58,8 +58,7 @@ def handleSubmodules(versionParam) {
def updateSourceRevisions() { def updateSourceRevisions() {
println "update source revisions to head..." println "update source revisions to head..."
sh "bash -c '. ./env.image-ostree > /dev/null && cd ../'" sh(returnStdout: true, script: "bash -c '. ./env.image-ostree > /dev/null && cd ../ && ./src-rev.sh -v -d -r -l ./srcrev.log'")
sh(returnStdout: true, script: "./src-rev.sh -v -d -r -l ./srcrev.log")
} }