From 1a9eaf447745861b9657a55cf35930d8f10706c9 Mon Sep 17 00:00:00 2001 From: markoburcul Date: Fri, 11 Oct 2024 15:39:33 +0200 Subject: [PATCH] jenkinsfile: limit gitscm step to only opened pr Signed-off-by: markoburcul --- apps/connector/Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/connector/Jenkinsfile b/apps/connector/Jenkinsfile index a912ab03..45a75c3f 100644 --- a/apps/connector/Jenkinsfile +++ b/apps/connector/Jenkinsfile @@ -30,6 +30,9 @@ pipeline { stages { stage('Checkout') { + when { + expression { currentBuild.previousCompletedBuild == null } + } steps { script { checkout scmGit(