Skip to content
Snippets Groups Projects
Commit d2cf732e authored by Mikaël Barbero's avatar Mikaël Barbero :dagger:
Browse files

Jenkinsfile housekeeping

parent ccc44f5c
No related branches found
No related tags found
No related merge requests found
Pipeline #1341 passed
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
buildDiscarder(logRotator(numToKeepStr: '10')) buildDiscarder(logRotator(numToKeepStr: '10'))
} }
triggers { triggers {
// build once a week to keep up with parents images updates // build once a week to keep up with parents images updates
cron('H H * * H') cron('H H * * H')
} }
stages { stages {
...@@ -88,33 +88,33 @@ ...@@ -88,33 +88,33 @@
stage('Deploy to cluster') { stage('Deploy to cluster') {
agent { agent {
kubernetes { kubernetes {
label 'kubedeploy-agent-' + env.JOB_NAME.replaceAll("/", "-") label 'kubedeploy-agent'
yaml ''' yaml '''
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
spec: spec:
containers: containers:
- name: kubectl - name: kubectl
image: eclipsefdn/kubectl:okd-c1 image: eclipsefdn/kubectl:okd-c1
command: command:
- cat - cat
tty: true tty: true
resources: resources:
limits: limits:
cpu: 1 cpu: 1
memory: 1Gi memory: 1Gi
volumeMounts: volumeMounts:
- mountPath: "/home/default/.kube" - mountPath: "/home/default/.kube"
name: "dot-kube" name: "dot-kube"
readOnly: false readOnly: false
- name: jnlp - name: jnlp
resources: resources:
limits: limits:
cpu: 1 cpu: 1
memory: 1Gi memory: 1Gi
volumes: volumes:
- name: "dot-kube" - name: "dot-kube"
emptyDir: {} emptyDir: {}
''' '''
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment