From 85896eca3906910e769e4abed7e7f4fb5210b2fd Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 17 Nov 2023 14:29:35 -0700 Subject: [PATCH] jenkins: Sync submodules Always sync submodules before the SCM step to handle coreboot adding new submodules. This is needed because coreboot uses relative paths for submodules, so git tries to clone it from the System76 GitHub organization. We are not mirroring submodules and want to clone from gerrit. Signed-off-by: Tim Crawford --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 56386df..e58bcb3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,6 +54,11 @@ pipeline { setBuildStatus("pending", "Pending") slackSend(color: "good", message: "${env.JOB_NAME} - #${env.BUILD_ID} started (<${env.BUILD_URL}|Open>)") + sh """#!/bin/bash + # Update submodule URLs because of coreboot + git submodule sync --recursive + """ + // https://www.jenkins.io/doc/pipeline/steps/params/scmgit/ checkout scmGit( branches: [[name: '${SOURCE_BRANCH}']],