Skip to content

Commit

Permalink
kie-issues#1212: fix clean* pipelines from tools directory (#1196)
Browse files Browse the repository at this point in the history
Co-authored-by: jstastny-cz <[email protected]>
  • Loading branch information
jstastny-cz and jstastny-cz authored May 15, 2024
1 parent 6c18b6e commit 10f5921
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .ci/jenkins/Jenkinsfile.tools.clean-nightly-images
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import org.jenkinsci.plugins.workflow.libs.Library

@Library('jenkins-pipeline-shared-libraries')_

pipeline {
agent {
docker {
Expand Down
8 changes: 6 additions & 2 deletions .ci/jenkins/Jenkinsfile.tools.clean-old-namespaces
Original file line number Diff line number Diff line change
@@ -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()
}
}
Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 10f5921

Please sign in to comment.