jenkinsfile: limit gitscm step to only opened pr

Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
markoburcul 2024-10-11 15:39:33 +02:00
parent 22d573ff77
commit 1a9eaf4477
No known key found for this signature in database
GPG Key ID: FC4CD2F9A040D54A
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ pipeline {
stages {
stage('Checkout') {
when {
expression { currentBuild.previousCompletedBuild == null }
}
steps {
script {
checkout scmGit(