Skip to content
Snippets Groups Projects
Commit 9718d1ac authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3420 skip default checkout

parent 9dda351e
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,25 @@ pipeline { ...@@ -27,9 +27,25 @@ pipeline {
timeout(time: 1, unit: 'HOURS') timeout(time: 1, unit: 'HOURS')
disableConcurrentBuilds() disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '5')) buildDiscarder(logRotator(numToKeepStr: '5'))
skipDefaultCheckout(true)
} }
stages { stages {
stage('Checkout SCM') {
when {
anyOf {
triggeredBy 'BuildUpstreamCause'
triggeredBy cause: "UserIdCause"
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
checkout scm
}
}
}
stage("Clone Gitops Repo") { stage("Clone Gitops Repo") {
when { when {
anyOf { anyOf {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment