Skip to content

Commit

Permalink
kie-issues#1219 - Configure Dockerhub credentials on KIE Tools CI pip…
Browse files Browse the repository at this point in the history
…elines (apache#2415)
  • Loading branch information
rodrigonull authored Jun 10, 2024
1 parent 6e268a7 commit aeee25d
Show file tree
Hide file tree
Showing 43 changed files with 137 additions and 97 deletions.
50 changes: 33 additions & 17 deletions .ci/jenkins/Jenkinsfile.daily-dev-publish
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
label util.avoidFaultyNodes()
}
Expand Down Expand Up @@ -241,7 +241,8 @@ pipeline {
"${env.SONATAFLOW_BUILDER_IMAGE__registry}/${env.SONATAFLOW_BUILDER_IMAGE__account}",
"${env.SONATAFLOW_BUILDER_IMAGE__name}",
"${env.SONATAFLOW_BUILDER_IMAGE__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -254,7 +255,8 @@ pipeline {
"${env.SONATAFLOW_DEVMODE_IMAGE__registry}/${env.SONATAFLOW_DEVMODE_IMAGE__account}",
"${env.SONATAFLOW_DEVMODE_IMAGE__name}",
"${env.SONATAFLOW_DEVMODE_IMAGE__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -267,7 +269,8 @@ pipeline {
"${env.SONATAFLOW_OPERATOR__registry}/${env.SONATAFLOW_OPERATOR__account}",
"${env.SONATAFLOW_OPERATOR__name}",
"${env.SONATAFLOW_OPERATOR__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -280,7 +283,8 @@ pipeline {
"${env.DEV_DEPLOYMENT_BASE_IMAGE__registry}/${env.DEV_DEPLOYMENT_BASE_IMAGE__account}",
"${env.DEV_DEPLOYMENT_BASE_IMAGE__name}",
"${env.DEV_DEPLOYMENT_BASE_IMAGE__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -293,7 +297,8 @@ pipeline {
"${env.DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__registry}/${env.DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__account}",
"${env.DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__name}",
"${env.DEV_DEPLOYMENT_DMN_FORM_WEBAPP_IMAGE__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -306,7 +311,8 @@ pipeline {
"${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__registry}/${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__account}",
"${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__name}",
"${env.DEV_DEPLOYMENT_KOGITO_QUARKUS_BLANK_APP_IMAGE__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -319,7 +325,8 @@ pipeline {
"${env.KIE_SANDBOX_EXTENDED_SERVICES__imageRegistry}/${env.KIE_SANDBOX_EXTENDED_SERVICES__imageAccount}",
"${env.KIE_SANDBOX_EXTENDED_SERVICES__imageName}",
"${env.KIE_SANDBOX_EXTENDED_SERVICES__imageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand Down Expand Up @@ -350,7 +357,8 @@ pipeline {
"${env.CORS_PROXY_IMAGE__imageRegistry}/${env.CORS_PROXY_IMAGE__imageAccount}",
"${env.CORS_PROXY_IMAGE__imageName}",
"${env.CORS_PROXY_IMAGE__imageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand Down Expand Up @@ -381,7 +389,8 @@ pipeline {
"${env.KIE_SANDBOX_WEBAPP_IMAGE__imageRegistry}/${env.KIE_SANDBOX_WEBAPP_IMAGE__imageAccount}",
"${env.KIE_SANDBOX_WEBAPP_IMAGE__imageName}",
"${env.KIE_SANDBOX_WEBAPP_IMAGE__imageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand Down Expand Up @@ -420,7 +429,8 @@ pipeline {
"${env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageRegistry}/${env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageAccount}",
"${env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageName}",
"${env.SERVERLESS_LOGIC_WEB_TOOLS__swfBuilderImageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -433,7 +443,8 @@ pipeline {
"${env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageRegistry}/${env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageAccount}",
"${env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageName}",
"${env.SERVERLESS_LOGIC_WEB_TOOLS__baseBuilderImageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -446,7 +457,8 @@ pipeline {
"${env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageRegistry}/${env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageAccount}",
"${env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageName}",
"${env.SERVERLESS_LOGIC_WEB_TOOLS__swfDevModeImageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -459,7 +471,8 @@ pipeline {
"${env.DASHBUILDER__viewerImageRegistry}/${env.DASHBUILDER__viewerImageAccount}",
"${env.DASHBUILDER__viewerImageName}",
"${env.DASHBUILDER__viewerImageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -472,7 +485,8 @@ pipeline {
"${env.KOGITO_TASK_CONSOLE__registry}/${env.KOGITO_TASK_CONSOLE__account}",
"${env.KOGITO_TASK_CONSOLE__name}",
"${env.KOGITO_TASK_CONSOLE__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -485,7 +499,8 @@ pipeline {
"${env.KOGITO_MANAGEMENT_CONSOLE__registry}/${env.KOGITO_MANAGEMENT_CONSOLE__account}",
"${env.KOGITO_MANAGEMENT_CONSOLE__name}",
"${env.KOGITO_MANAGEMENT_CONSOLE__buildTag}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -498,7 +513,8 @@ pipeline {
helmUtils.pushChartToRegistry(
"${env.KIE_SANDBOX_HELM_CHART__registry}/${env.KIE_SANDBOX_HELM_CHART__account}",
"packages/kie-sandbox-helm-chart/dist/${env.KIE_SANDBOX_HELM_CHART__name}-${env.KIE_SANDBOX_HELM_CHART__tag}.tgz",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.release-build
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
label util.avoidFaultyNodes()
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.release-candidate
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
label util.avoidFaultyNodes()
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.release-dry-run
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
label util.avoidFaultyNodes()
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.release-publish
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
label util.avoidFaultyNodes()
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
label util.avoidFaultyNodes()
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.setup-branch.quarkus-accelerator
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
label util.avoidFaultyNodes()
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.weekly-publish
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def dateDefaultValue = sdf.format(new Date())
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
label util.avoidFaultyNodes()
}
Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/ci-jobs/Jenkinsfile.ci-build
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
}

parameters {
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'latest')
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'main')
}

environment {
Expand All @@ -49,7 +49,7 @@ pipeline {
agent {
docker {
label("${buildUtils.apacheAgentLabels()}")
image "quay.io/kie-tools/kie-tools-ci-build:${params.IMAGE_TAG}"
image "docker.io/apache/incubator-kie-tools-ci-build:${params.IMAGE_TAG}"
args '--shm-size=2g --privileged --group-add docker'
}
}
Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/ci-jobs/Jenkinsfile.ci-check-code-fmt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
}

parameters {
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'latest')
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'main')
}

stages {
Expand All @@ -38,7 +38,7 @@ pipeline {
stage('Check code formatting') {
agent {
docker {
image "quay.io/kie-tools/kie-tools-ci-build:${params.IMAGE_TAG}"
image "docker.io/apache/incubator-kie-tools-ci-build:${params.IMAGE_TAG}"
}
}

Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/ci-jobs/Jenkinsfile.ci-check-codeql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
}

parameters {
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'latest')
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'main')
}

environment {
Expand All @@ -48,7 +48,7 @@ pipeline {
stage('Check code quality') {
agent {
docker {
image "quay.io/kie-tools/kie-tools-ci-build:${params.IMAGE_TAG}"
image "docker.io/apache/incubator-kie-tools-ci-build:${params.IMAGE_TAG}"
}
}

Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/ci-jobs/Jenkinsfile.ci-check-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
}

parameters {
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'latest')
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'main')
}

stages {
Expand All @@ -38,7 +38,7 @@ pipeline {
stage('Check dependencies consistency') {
agent {
docker {
image "quay.io/kie-tools/kie-tools-ci-build:${params.IMAGE_TAG}"
image "docker.io/apache/incubator-kie-tools-ci-build:${params.IMAGE_TAG}"
}
}

Expand Down
13 changes: 8 additions & 5 deletions .ci/jenkins/ci-jobs/Jenkinsfile.ci-image-build
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ pipeline {
agent any

parameters {
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'latest')
string(description: 'Image tag', name: 'IMAGE_TAG', defaultValue: 'main')
}

environment {
IMAGE_ACCOUNT = 'quay.io/kie-tools'
IMAGE_NAME = 'kie-tools-ci-build'
IMAGE_ACCOUNT = 'docker.io/apache'
IMAGE_NAME = 'incubator-kie-tools-ci-build'
IMAGE_NAME_TAG = "${IMAGE_ACCOUNT}/${IMAGE_NAME}:${params.IMAGE_TAG}"
DOCKER_CONFIG = "${WORKSPACE}/.docker"
}
Expand Down Expand Up @@ -73,7 +73,8 @@ pipeline {
"${IMAGE_ACCOUNT}",
"${IMAGE_NAME}",
"${params.IMAGE_TAG}",
"${pipelineVars.quayPushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand All @@ -91,7 +92,7 @@ pipeline {
if (!env.CHANGE_ID && env.BRANCH_NAME == 'main') {
sh """
docker build -t ${IMAGE_NAME_TAG} -f .ci/incubator-kie-tools-ci-build.Dockerfile .
docker tag ${IMAGE_NAME_TAG} ${IMAGE_ACCOUNT}/${IMAGE_NAME}:latest
docker tag ${IMAGE_NAME_TAG} ${IMAGE_ACCOUNT}/${IMAGE_NAME}:main
"""
IMAGE_TAGS = "${params.IMAGE_TAG} latest"
} else {
Expand Down Expand Up @@ -133,6 +134,8 @@ pipeline {
node --version
npm --version
pnpm --version
python --version
helm version
go version
'''.trim()
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/release-jobs/Jenkinsfile.chrome-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
}
}
Expand Down
5 changes: 3 additions & 2 deletions .ci/jenkins/release-jobs/Jenkinsfile.cors-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
}
}
Expand Down Expand Up @@ -148,7 +148,8 @@ pipeline {
"${env.CORS_PROXY_IMAGE__imageRegistry}/${env.CORS_PROXY_IMAGE__imageAccount}",
"${env.CORS_PROXY_IMAGE__imageName}",
"${env.CORS_PROXY_IMAGE__imageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand Down
5 changes: 3 additions & 2 deletions .ci/jenkins/release-jobs/Jenkinsfile.dashbuilder-viewer-image
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pipeline {
agent {
docker {
image 'quay.io/kie-tools/kie-tools-ci-build:latest'
image 'docker.io/apache/incubator-kie-tools-ci-build:main'
args '--shm-size=2g --privileged --group-add docker'
}
}
Expand Down Expand Up @@ -143,7 +143,8 @@ pipeline {
"${env.DASHBUILDER__viewerImageRegistry}/${env.DASHBUILDER__viewerImageAccount}",
"${env.DASHBUILDER__viewerImageName}",
"${env.DASHBUILDER__viewerImageBuildTags}",
"${pipelineVars.dockerHubApacheKiePushCredentialsId}"
"${pipelineVars.dockerHubUserCredentialsId}",
"${pipelineVars.dockerHubTokenCredentialsId}"
)
}
}
Expand Down
Loading

0 comments on commit aeee25d

Please sign in to comment.