| |
@@ -19,20 +19,6 @@
|
| |
displayName: A string in cron syntax that defines the frequency to run this job
|
| |
required: true
|
| |
value: "H/10 * * * *"
|
| |
- - name: JENKINS_AGENT_IMAGE
|
| |
- displayName: Jenkins agent container image
|
| |
- required: true
|
| |
- value: docker-registry.upshift.redhat.com/factory2/factory2-integration-test-jenkins-slave:latest
|
| |
- - name: JENKINS_AGENT_SERVICE_ACCOUNT
|
| |
- displayName: service account for a Jenkins agent to interact with OpenShift API server
|
| |
- required: true
|
| |
- value: jenkins
|
| |
- - name: JENKINS_AGENT_CLOUD
|
| |
- displayName: OpenShift cloud to run a Jenkins agent
|
| |
- required: true
|
| |
- value: openshift
|
| |
- - name: JENKINS_AGENT_NAMESPACE
|
| |
- displayName: OpenShift namespace to run a Jenkins agent
|
| |
labels:
|
| |
template: c3iaas-cleanup-projects
|
| |
app: c3iaas
|
| |
@@ -52,11 +38,5 @@
|
| |
library identifier: 'c3i@${GIT_REF}', changelog: false,
|
| |
retriever: modernSCM([$class: 'GitSCMSource', remote: '${GIT_REPO}'])
|
| |
c3iaasCleanupProjectsJob(
|
| |
- agent: [
|
| |
- cloud: '${JENKINS_AGENT_CLOUD}',
|
| |
- namespace: '${JENKINS_AGENT_NAMESPACE}',
|
| |
- serviceAccount: '${JENKINS_AGENT_SERVICE_ACCOUNT}',
|
| |
- image: '${JENKINS_AGENT_IMAGE}',
|
| |
- ],
|
| |
cronExpression: '${CRON_EXPRESSION}',
|
| |
)
|
| |
Save resources, use running Jenkins master to run openshift commands