Last active
August 7, 2017 21:55
-
-
Save arturo-c/7af6ce4708fbd0a7dfc1fba1c852570a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
podTemplate(cloud: 'eo-test', label: 'deploy', containers: [ | |
containerTemplate(name: 'docker', image: 'docker:17.03', command: 'cat', ttyEnabled: true), | |
containerTemplate(name: 'curl', image: 'uzyexe/curl', command: 'cat', ttyEnabled: true), | |
containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:3.10-1-alpine', args: '${computer.jnlpmac} ${computer.name}'), | |
containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:v2.3.1', envVars: [[key: 'KUBE_ENV', value: 'eo-test']], command: 'cat', ttyEnabled: true)], | |
volumes: [hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock')]) { | |
withEnv(["KUBE_ENV=${kubeEnv}"]) { | |
node('deploy') { | |
body() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment