Skip to content

Instantly share code, notes, and snippets.

@tigran10
Created July 18, 2018 12:58
Show Gist options
  • Save tigran10/19b40d01c13763be9ecd6e250c63a768 to your computer and use it in GitHub Desktop.
Save tigran10/19b40d01c13763be9ecd6e250c63a768 to your computer and use it in GitHub Desktop.
pipeline {
agent {
kubernetes {
label 'mypod'
defaultContainer 'jnlp'
yaml """
apiVersion: v1
kind: Pod
metadata:
labels:
some-label: some-label-value
spec:
containers:
- name: maven
image: maven:alpine
command:
- cat
tty: true
- name: busybox
image: busybox
command:
- cat
tty: true
"""
}
}
stages {
stage('env') {
steps {
sh 'env'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment