forked from apache/incubator-kie-optaplanner-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kie-issues#574 Initial ASF Jenkins CI Setup (apache#607)
Co-authored-by: jstastny-cz <[email protected]>
- Loading branch information
1 parent
ffc95fb
commit 21c2673
Showing
8 changed files
with
76 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@Library('jenkins-pipeline-shared-libraries')_ | ||
|
||
pr_check_script = null | ||
|
||
pipeline { | ||
agent { | ||
label 'ubuntu' | ||
} | ||
options { | ||
timestamps() | ||
timeout(time: 720, unit: 'MINUTES') | ||
} | ||
environment { | ||
BUILDCHAIN_PROJECT = 'apache/incubator-kie-optaplanner-quickstarts' | ||
BUILDCHAIN_CONFIG_REPO = 'apache/incubator-kie-optaplanner' | ||
BUILDCHAIN_CONFIG_FILE_PATH = '.ci/buildchain-config.yaml' | ||
|
||
OPTAPLANNER_BUILD_MVN_OPTS_UPSTREAM = '-Dfull' | ||
BUILD_MVN_OPTS_CURRENT = '-Dfull' | ||
} | ||
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, 'kie-ci')) // TODO to change back to kiegroup:main | ||
pr_check_script = load 'dsl/scripts/pr_check.groovy' | ||
} | ||
} | ||
} | ||
} | ||
stage('PR check') { | ||
steps { | ||
script { | ||
dir('kogito-pipelines') { | ||
pr_check_script.launch() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,16 @@ jobs: | |
restore-keys: ${{ runner.os }}-${{ matrix.java-version }}-m2 | ||
- name: Build Chain ${{ matrix.java-version }} | ||
id: build-chain | ||
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/build-chain@main | ||
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/github-action-build-chain@v3.1.10 | ||
with: | ||
definition-file: https://raw.githubusercontent.com/${GROUP:apache}/incubator-kie-optaplanner/${BRANCH:main}/.ci/buildchain-config.yaml | ||
definition-file: https://raw.githubusercontent.com/${GROUP}/incubator-kie-optaplanner/main/.ci/buildchain-config.yaml | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
OPTAPLANNER_BUILD_MVN_OPTS_UPSTREAM: "-Dfull" | ||
- name: Surefire Report | ||
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/surefire-report@main | ||
- name: Check Surefire Report | ||
if: ${{ always() }} | ||
uses: ScaCap/[email protected] | ||
with: | ||
fail_on_test_failures: true | ||
fail_if_no_tests: false | ||
skip_publishing: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters