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:
parent
9fe49c131b
commit
c459438f49
|
|
@ -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")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue