jenkinsfile: limit gitscm step to only opened pr
Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
parent
22d573ff77
commit
1a9eaf4477
|
@ -30,6 +30,9 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
when {
|
||||||
|
expression { currentBuild.previousCompletedBuild == null }
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
checkout scmGit(
|
checkout scmGit(
|
||||||
|
|
Loading…
Reference in New Issue