Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Sep 4, 2023
1 parent b190189 commit 12b03c9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dsl/scripts/pr_check.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
void launch() {
docker.image('quay.io/kiegroup/kogito-ci-build:latest').inside {
String builderImage = 'quay.io/kiegroup/kogito-ci-build:latest'
try {
launchInDocker(builderImage)
} finally {
sh "docker rmi -f ${builderImage}"
}
}

void launchInDocker(String builderImage) {
docker.image(builderImage).inside {
env.JAVA_TOOL_OPTIONS = '-Dfile.encoding=UTF-8'
try {
launchStages()
Expand All @@ -11,7 +20,6 @@ void launch() {
}
}
}
sh 'docker rmi quay.io/kiegroup/kogito-ci-build:latest'
}

void launchStages() {
Expand Down

0 comments on commit 12b03c9

Please sign in to comment.