From 3096f22bbf7c2067a375831fd4ab1e18451b842a Mon Sep 17 00:00:00 2001 From: jstastny-cz Date: Tue, 24 Oct 2023 09:28:13 +0200 Subject: [PATCH] add PR check triggering Jenkinsfile --- .ci/jenkins/Jenkinsfile.pr.1.40.x | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .ci/jenkins/Jenkinsfile.pr.1.40.x diff --git a/.ci/jenkins/Jenkinsfile.pr.1.40.x b/.ci/jenkins/Jenkinsfile.pr.1.40.x new file mode 100644 index 00000000000..232a27175e1 --- /dev/null +++ b/.ci/jenkins/Jenkinsfile.pr.1.40.x @@ -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() + } + } +}