This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/main by this push:
new 10f5921e kie-issues#1212: fix clean* pipelines from tools directory
(#1196)
10f5921e is described below
commit 10f5921e9d05130022de3ceca528d6d794d5e827
Author: Jan Stastny <[email protected]>
AuthorDate: Wed May 15 11:41:04 2024 +0200
kie-issues#1212: fix clean* pipelines from tools directory (#1196)
Co-authored-by: jstastny-cz <[email protected]>
---
.ci/jenkins/Jenkinsfile.tools.clean-nightly-images | 4 ++++
.ci/jenkins/Jenkinsfile.tools.clean-old-namespaces | 8 ++++++--
.ci/jenkins/dsl/jobs.groovy | 1 +
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.tools.clean-nightly-images
b/.ci/jenkins/Jenkinsfile.tools.clean-nightly-images
index 663df441..cb9527cd 100644
--- a/.ci/jenkins/Jenkinsfile.tools.clean-nightly-images
+++ b/.ci/jenkins/Jenkinsfile.tools.clean-nightly-images
@@ -1,3 +1,7 @@
+import org.jenkinsci.plugins.workflow.libs.Library
+
+@Library('jenkins-pipeline-shared-libraries')_
+
pipeline {
agent {
docker {
diff --git a/.ci/jenkins/Jenkinsfile.tools.clean-old-namespaces
b/.ci/jenkins/Jenkinsfile.tools.clean-old-namespaces
index e5ff002e..8ce3f946 100644
--- a/.ci/jenkins/Jenkinsfile.tools.clean-old-namespaces
+++ b/.ci/jenkins/Jenkinsfile.tools.clean-old-namespaces
@@ -1,8 +1,12 @@
+import org.jenkinsci.plugins.workflow.libs.Library
+
+@Library('jenkins-pipeline-shared-libraries')_
+
pipeline {
agent {
docker {
- image 'quay.io/kiegroup/kogito-ci-build:latest' // TODO to set in
branch config
- args '-v /var/run/docker.sock:/var/run/docker.sock --group-add
docker --group-add input --group-add render'
+ image env.AGENT_DOCKER_BUILDER_IMAGE
+ args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index 3a0f0e22..b028ca20 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -77,6 +77,7 @@ Utils.isMainBranch(this) &&
KogitoJobTemplate.createBranchMultibranchPipelineJob
void setupCleanOldNamespacesToolsJob() {
def jobParams = JobParamsUtils.getBasicJobParams(this,
'kogito-clean-old-namespaces', JobType.TOOLS,
"${jenkins_path}/Jenkinsfile.tools.clean-old-namespaces")
jobParams.triggers = [ cron : '@midnight' ]
+ JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this,
jobParams)
KogitoJobTemplate.createPipelineJob(this, jobParams)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]