This is an automated email from the ASF dual-hosted git repository.
porcelli pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 4d06f191951 [10.0.x] NO-ISSUE: Fix "Scripts not permitted to use
method java.util.Collection toArray" error on release jobs (#2730)
4d06f191951 is described below
commit 4d06f19195121dfa63210c2932fbfa5e11ac85b4
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Thu Nov 7 14:54:06 2024 -0300
[10.0.x] NO-ISSUE: Fix "Scripts not permitted to use method
java.util.Collection toArray" error on release jobs (#2730)
Co-authored-by: Rodrigo Antunes <[email protected]>
---
.ci/jenkins/release-jobs/Jenkinsfile.cors-proxy | 20 +++++---------------
.../Jenkinsfile.dashbuilder-viewer-image | 20 +++++---------------
.../Jenkinsfile.dev-deployment-base-image | 20 +++++---------------
.../Jenkinsfile.dev-deployment-dmn-form-webapp-image | 20 +++++---------------
...ile.dev-deployment-kogito-quarkus-blank-app-image | 20 +++++---------------
.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox | 20 +++++---------------
.../Jenkinsfile.kie-sandbox-extended-services | 20 +++++---------------
.../release-jobs/Jenkinsfile.kie-sandbox-helm-chart | 20 +++++---------------
.../Jenkinsfile.kogito-management-console | 20 +++++---------------
.../Jenkinsfile.kogito-serverless-operator | 20 +++++---------------
.../release-jobs/Jenkinsfile.kogito-swf-builder | 20 +++++---------------
.../release-jobs/Jenkinsfile.kogito-swf-devmode | 20 +++++---------------
.../release-jobs/Jenkinsfile.kogito-task-console | 20 +++++---------------
.../Jenkinsfile.runtime-tools-consoles-helm-chart | 20 +++++---------------
...ile.serverless-logic-web-tools-base-builder-image | 20 +++++---------------
...file.serverless-logic-web-tools-swf-builder-image | 20 +++++---------------
...ile.serverless-logic-web-tools-swf-dev-mode-image | 20 +++++---------------
.ci/jenkins/shared-scripts/releaseUtils.groovy | 7 ++++---
18 files changed, 89 insertions(+), 258 deletions(-)
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.cors-proxy
b/.ci/jenkins/release-jobs/Jenkinsfile.cors-proxy
index bd5f24d00e8..c69fc35b119 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.cors-proxy
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.cors-proxy
@@ -91,31 +91,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.dashbuilder-viewer-image
b/.ci/jenkins/release-jobs/Jenkinsfile.dashbuilder-viewer-image
index c8c11179621..0d77e26c4c5 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.dashbuilder-viewer-image
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.dashbuilder-viewer-image
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-base-image
b/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-base-image
index cde18ee8115..6473a0a3c74 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-base-image
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-base-image
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git
a/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-dmn-form-webapp-image
b/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-dmn-form-webapp-image
index 631e119844c..a1d39f6378c 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-dmn-form-webapp-image
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-dmn-form-webapp-image
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git
a/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-kogito-quarkus-blank-app-image
b/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-kogito-quarkus-blank-app-image
index 73e46320d27..4bf08588a8c 100644
---
a/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-kogito-quarkus-blank-app-image
+++
b/.ci/jenkins/release-jobs/Jenkinsfile.dev-deployment-kogito-quarkus-blank-app-image
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox
b/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox
index 15b4c769dd0..ac07e363b2b 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox
@@ -107,31 +107,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-extended-services
b/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-extended-services
index 87b254bd870..4d1ec7a34b8 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-extended-services
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-extended-services
@@ -91,31 +91,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-helm-chart
b/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-helm-chart
index e88dae7ede8..bac840b8046 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-helm-chart
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-helm-chart
@@ -87,31 +87,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-management-console
b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-management-console
index 00f19355a47..1593a8f61eb 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-management-console
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-management-console
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-serverless-operator
b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-serverless-operator
index 1fd335e4588..84a509b1f61 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-serverless-operator
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-serverless-operator
@@ -90,31 +90,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-builder
b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-builder
index 403e5c246ca..818de146e96 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-builder
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-builder
@@ -88,31 +88,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-devmode
b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-devmode
index 32de84f3672..5dd50e2f7ae 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-devmode
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-devmode
@@ -88,31 +88,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-task-console
b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-task-console
index 4df2c13da9d..cec2fcb9f07 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.kogito-task-console
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.kogito-task-console
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git
a/.ci/jenkins/release-jobs/Jenkinsfile.runtime-tools-consoles-helm-chart
b/.ci/jenkins/release-jobs/Jenkinsfile.runtime-tools-consoles-helm-chart
index d98287cf73e..a6829ab05b6 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.runtime-tools-consoles-helm-chart
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.runtime-tools-consoles-helm-chart
@@ -87,31 +87,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git
a/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-base-builder-image
b/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-base-builder-image
index 343358fc09d..3b127ff2531 100644
---
a/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-base-builder-image
+++
b/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-base-builder-image
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git
a/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-builder-image
b/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-builder-image
index 018ea5a5ccf..75bafaa1130 100644
---
a/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-builder-image
+++
b/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-builder-image
@@ -88,31 +88,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git
a/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-dev-mode-image
b/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-dev-mode-image
index 141d4e981ed..04c608a2018 100644
---
a/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-dev-mode-image
+++
b/.ci/jenkins/release-jobs/Jenkinsfile.serverless-logic-web-tools-swf-dev-mode-image
@@ -86,31 +86,21 @@ pipeline {
}
}
- stage('Download upstream images from staging SVN') {
+ stage('Download upstream images from staging SVN and load them on
Docker') {
when {
expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
}
steps {
script {
- env.UPSTREAM_IMAGES_ARTIFACTS =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_CANDIDATE_VERSION}")
+ String[] upstream_images_artifacts =
releaseUtils.getUpstreamImagesArtifactsList("${params.RELEASE_VERSION}")
releaseUtils.downloadReleaseArtifacts(
"${pipelineVars.asfReleaseStagingRepository}",
"${UPSTREAM_RELEASE_ARTIFACTS_DIR}",
"${params.RELEASE_CANDIDATE_VERSION}",
- "${UPSTREAM_IMAGES_ARTIFACTS}"
+ upstream_images_artifacts,
)
- }
- }
- }
-
- stage('Load upstream images') {
- when {
- expression { !params.DRY_RUN && params.JOB_TYPE ==
'release-candidate' }
- }
- steps {
- dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
- script {
- dockerUtils.loadImages("${UPSTREAM_IMAGES_ARTIFACTS}")
+ dir("${UPSTREAM_RELEASE_ARTIFACTS_DIR}") {
+ dockerUtils.loadImages(upstream_images_artifacts)
}
}
}
diff --git a/.ci/jenkins/shared-scripts/releaseUtils.groovy
b/.ci/jenkins/shared-scripts/releaseUtils.groovy
index a1a37a567ef..70d6449d6e8 100644
--- a/.ci/jenkins/shared-scripts/releaseUtils.groovy
+++ b/.ci/jenkins/shared-scripts/releaseUtils.groovy
@@ -56,7 +56,7 @@ def publishArtifacts(String artifactsDir, String
releaseRepository, String relea
/**
* Download release artifacts from a specific release
*/
-def downloadReleaseArtifacts(String releaseRepository, String releaseVersion,
String artifactsDir, String... artifactsNames) {
+def downloadReleaseArtifacts(String releaseRepository, String artifactsDir,
String releaseVersion, String... artifactsNames) {
sh """#!/bin/bash -el
mkdir -p "${artifactsDir}" || true
""".trim()
@@ -73,7 +73,7 @@ def downloadReleaseArtifacts(String releaseRepository, String
releaseVersion, St
* Return a list of upstream images artifacts
*/
def getUpstreamImagesArtifactsList(String releaseVersion) {
- return [
+ String[] images = [
"apache-kie-${releaseVersion}-incubating-kogito-base-builder-image.tar.gz",
"apache-kie-${releaseVersion}-incubating-kogito-data-index-ephemeral-image.tar.gz",
"apache-kie-${releaseVersion}-incubating-kogito-data-index-postgresql-image.tar.gz",
@@ -81,7 +81,8 @@ def getUpstreamImagesArtifactsList(String releaseVersion) {
"apache-kie-${releaseVersion}-incubating-kogito-jobs-service-allinone-image.tar.gz",
"apache-kie-${releaseVersion}-incubating-kogito-jobs-service-ephemeral-image.tar.gz",
"apache-kie-${releaseVersion}-incubating-kogito-jobs-service-postgresql-image.tar.gz"
- ].toArray()
+ ]
+ return images
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]