Skip to content

Commit

Permalink
Revert "kie-issues-777: attempt to fix scripted pipeline as well (#1183
Browse files Browse the repository at this point in the history
…)"

This reverts commit 07ef567.
  • Loading branch information
cimbalek committed Feb 20, 2024
1 parent 07ef567 commit 5625032
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions dsl/scripts/pr_check.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -39,23 +39,21 @@ void launch() {
}

void launchInDocker(String builderImage) {
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'
)
}
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'
)
}
}
}
Expand Down

0 comments on commit 5625032

Please sign in to comment.