From 68c04583aa882c03009edb9e31c9d4b2961f4707 Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Mon, 1 Nov 2021 09:24:49 +0100 Subject: [PATCH] jenkins/update2head: use src rev update in same shell command Signed-off-by: Marc Mattmueller --- Jenkinsfile_update2head | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile_update2head b/Jenkinsfile_update2head index a5fa9a8..8473a8a 100644 --- a/Jenkinsfile_update2head +++ b/Jenkinsfile_update2head @@ -116,8 +116,7 @@ def updateMachineSrcRevs(machine) { env.MACHINE = "${machine}" println "update source revisions for ${env.MACHINE} to head..." sh("echo '==> ${env.MACHINE} =======================' >> ./${env.SOURCE_REVISION_UPDATE_LOG}") - sh("bash -c '. ./env.image-ostree > /dev/null && cd ../'") - sh(returnStdout: true, script: "./src-rev.sh -v -d -r -l ./srcrev.log -a ./autorev-packages.inc") + sh(returnStdout: true, script: "bash -c '. ./env.image-ostree > /dev/null && cd ../ && ./src-rev.sh -v -d -r -l ./srcrev.log -a ./autorev-packages.inc'") sh("cat ./srcrev.log >> ./${env.SOURCE_REVISION_UPDATE_LOG}") }