This is an automated email from the ASF dual-hosted git repository.
mcimbalek pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/main by this push:
new 07ef567f kie-issues-777: attempt to fix scripted pipeline as well
(#1183)
07ef567f is described below
commit 07ef567f1fd4af43f36ff62ff2940d44a419863a
Author: Martin Cimbalek <[email protected]>
AuthorDate: Tue Feb 20 14:52:19 2024 +0100
kie-issues-777: attempt to fix scripted pipeline as well (#1183)
---
dsl/scripts/pr_check.groovy | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/dsl/scripts/pr_check.groovy b/dsl/scripts/pr_check.groovy
index 49ab0fef..0a0c35ed 100644
--- a/dsl/scripts/pr_check.groovy
+++ b/dsl/scripts/pr_check.groovy
@@ -20,7 +20,7 @@
import org.kie.jenkins.MavenCommand
// TODO Docker image and args could be passed as env or anything ?
-dockerGroups = [
+dockerGroups = [
'docker',
]
dockerArgs = [
@@ -39,21 +39,23 @@ void launch() {
}
void launchInDocker(String builderImage) {
- docker.image(builderImage).inside(dockerArgs.join(' ')) {
- sh 'printenv > env_props'
- archiveArtifacts artifacts: 'env_props'
- util.waitForDocker()
- sh 'ls -last /var/run/docker.sock'
- try {
- launchStages()
- } finally {
- echo "Got build result ${currentBuild.currentResult}"
- if (currentBuild.currentResult != 'SUCCESS') {
- // TODO ci token as env ?
- postComment(
- util.getMarkdownTestSummary('PR', getReproducer(true),
"${BUILD_URL}", 'GITHUB'),
- 'kie-ci3-token'
- )
+ node(util.avoidFaultyNodes()) {
+ docker.image(builderImage).inside(dockerArgs.join(' ')) {
+ sh 'printenv > env_props'
+ archiveArtifacts artifacts: 'env_props'
+ util.waitForDocker()
+ sh 'ls -last /var/run/docker.sock'
+ try {
+ launchStages()
+ } finally {
+ echo "Got build result ${currentBuild.currentResult}"
+ if (currentBuild.currentResult != 'SUCCESS') {
+ // TODO ci token as env ?
+ postComment(
+ util.getMarkdownTestSummary('PR',
getReproducer(true), "${BUILD_URL}", 'GITHUB'),
+ 'kie-ci3-token'
+ )
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]