This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch radtriste-fix-pipelines
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git
The following commit(s) were added to refs/heads/radtriste-fix-pipelines by
this push:
new c0d44bce use open ports
c0d44bce is described below
commit c0d44bceeefeaee20d1f8c9992e0d6c2317fe663
Author: jstastny-cz <[email protected]>
AuthorDate: Thu Nov 9 13:42:41 2023 +0100
use open ports
---
.ci/jenkins/Jenkinsfile.build-and-test | 2 +-
.ci/jenkins/Jenkinsfile.build-image | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.build-and-test
b/.ci/jenkins/Jenkinsfile.build-and-test
index 36e426f5..914762b5 100644
--- a/.ci/jenkins/Jenkinsfile.build-and-test
+++ b/.ci/jenkins/Jenkinsfile.build-and-test
@@ -78,7 +78,7 @@ Closure createBuildAndTestStageClosure(String image) {
githubscm.updateGithubCommitStatus(image, 'PENDING', 'Queued',
getRepoName())
// Keep executing so we can cancel all if needed
- def job = build(job: "${getRepoName()}.build-image", wait: true,
parameters: buildParams, propagate: false)
+ def job = build(job: 'kogito-images.build-image', wait: true,
parameters: buildParams, propagate: false)
if (job.result != 'SUCCESS') {
if (job.result == 'UNSTABLE') {
unstable("Tests on ${image} seems to have failed")
diff --git a/.ci/jenkins/Jenkinsfile.build-image
b/.ci/jenkins/Jenkinsfile.build-image
index d3bdbcfd..367902d5 100644
--- a/.ci/jenkins/Jenkinsfile.build-image
+++ b/.ci/jenkins/Jenkinsfile.build-image
@@ -95,7 +95,8 @@ pipeline {
script {
updateGithubCommitStatus('PENDING', 'Build in progress')
- String localRegistry = cloud.startLocalRegistry()
+ int freePort = cloud.findFreePort()
+ String localRegistry = cloud.startLocalRegistry(freePort)
cloud.prepareForDockerMultiplatformBuild([localRegistry],[cloud.getDockerIOMirrorRegistryConfig()],
false)
// Generate the Dockerfile
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]