Skip to content

Commit 85896ec

Browse files
committed
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 <tcrawford@system76.com>
1 parent 1cbe757 commit 85896ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ pipeline {
5454
setBuildStatus("pending", "Pending")
5555
slackSend(color: "good", message: "${env.JOB_NAME} - #${env.BUILD_ID} started (<${env.BUILD_URL}|Open>)")
5656

57+
sh """#!/bin/bash
58+
# Update submodule URLs because of coreboot
59+
git submodule sync --recursive
60+
"""
61+
5762
// https://www.jenkins.io/doc/pipeline/steps/params/scmgit/
5863
checkout scmGit(
5964
branches: [[name: '${SOURCE_BRANCH}']],

0 commit comments

Comments
 (0)