Skip to content

Commit

Permalink
add PR check triggering Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Oct 24, 2023
1 parent 294cf71 commit 3096f22
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .ci/jenkins/Jenkinsfile.pr.1.40.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@Library('jenkins-pipeline-shared-libraries')_

pr_check_script = null

pipeline {
agent {
label 'ubuntu'
}
options {
timestamps()
timeout(time: 480, unit: 'MINUTES')
disableConcurrentBuilds(abortPrevious: true)
}
environment {
BUILDCHAIN_PROJECT = 'apache/incubator-kie-kogito-runtimes'

ENABLE_SONARCLOUD = 'false'
KOGITO_RUNTIMES_BUILD_MVN_OPTS = '-Dvalidate-formatting -Prun-code-coverage'
}
stages {
stage('Initialize') {
steps {
script {
// load `pr_check.groovy` file from kogito-pipelines:main
dir('kogito-pipelines') {
checkout(githubscm.resolveRepository('incubator-kie-kogito-pipelines', 'apache', 'main', false, 'ASF_Cloudbees_Jenkins_ci-builds'))
pr_check_script = load 'dsl/scripts/pr_check.groovy'
}
}
}
}
stage('PR check') {
steps {
script {
dir('kogito-pipelines') {
pr_check_script.launch()
}
}
}
}
}
post {
cleanup {
cleanWs()
}
}
}

0 comments on commit 3096f22

Please sign in to comment.