From 0007649fb6d57043247c2341e8a2c13710e46bd2 Mon Sep 17 00:00:00 2001 From: wayonb Date: Tue, 23 Jun 2026 11:11:43 -0400 Subject: [PATCH] [monorepo]: add a update submodule job problem: NEM monorepo submodules are outdated solution: add a Jenkins job to update the submodule weekly --- .github/buildConfiguration.yaml | 7 +++++++ .github/jenkinsfile/updateSubmodule.groovy | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 .github/jenkinsfile/updateSubmodule.groovy diff --git a/.github/buildConfiguration.yaml b/.github/buildConfiguration.yaml index 078aba129f..014a5d273b 100644 --- a/.github/buildConfiguration.yaml +++ b/.github/buildConfiguration.yaml @@ -32,3 +32,10 @@ customBuilds: triggers: - type: cron schedule: '@midnight' + + - name: Update Submodule + jobName: updateSubmoduleJob + scriptPath: .github/jenkinsfile/updateSubmodule.groovy + triggers: + - type: cron + schedule: H H(3-7) * * 2 diff --git a/.github/jenkinsfile/updateSubmodule.groovy b/.github/jenkinsfile/updateSubmodule.groovy new file mode 100644 index 0000000000..0335c7197b --- /dev/null +++ b/.github/jenkinsfile/updateSubmodule.groovy @@ -0,0 +1,7 @@ +gitPullRequestPipeline { + dockerImageName = 'symbolplatform/build-ci:cpp-ubuntu-lts' + prBranchName = 'fix/update_submodule' + scriptSetupCommand = 'bash init.sh' + scriptCommand = 'git submodule update --remote; git add .; git commit -m "[monorepo] fix: update submodule"' + reviewers = [] +}