From ae5b675bf767bb1623260edef38d4414b2a88120 Mon Sep 17 00:00:00 2001 From: Joonas Rautiola Date: Wed, 6 Nov 2024 15:28:45 +0200 Subject: [PATCH] hotfix: load utils in pre-merge pipeline Signed-off-by: Joonas Rautiola --- ghaf-pre-merge-pipeline.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghaf-pre-merge-pipeline.groovy b/ghaf-pre-merge-pipeline.groovy index 0c23975..5a16f85 100644 --- a/ghaf-pre-merge-pipeline.groovy +++ b/ghaf-pre-merge-pipeline.groovy @@ -8,6 +8,9 @@ def REPO_URL = 'https://github.com/tiiuae/ghaf/' def WORKDIR = 'ghaf' +// Utils module will be loaded in the first pipeline stage +def utils = null + def targets = [ [ system: "aarch64-linux", target: "doc", ], [ system: "x86_64-linux", target: "doc", ], @@ -80,6 +83,7 @@ pipeline { } stage('Checkout') { steps { + script { utils = load "utils.groovy" } dir(WORKDIR) { // References: // https://www.jenkins.io/doc/pipeline/steps/params/scmgit/#scmgit