40 lines
749 B
Groovy
40 lines
749 B
Groovy
pipeline {
|
|
agent {
|
|
kubernetes {
|
|
yaml '''
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
labels:
|
|
some-label: some-label-value
|
|
spec:
|
|
containers:
|
|
- name: buildah
|
|
image: quay.io/buildah/stable
|
|
command:
|
|
- cat
|
|
tty: true
|
|
- name: busybox
|
|
image: busybox
|
|
command:
|
|
- cat
|
|
tty: true
|
|
'''
|
|
retries 2
|
|
}
|
|
}
|
|
stages {
|
|
stage('Run buildah') {
|
|
steps {
|
|
container('buildah') {
|
|
sh 'ls -lha'
|
|
sh 'buildah images'
|
|
sh 'buildah -version'
|
|
}
|
|
container('busybox') {
|
|
sh 'ls -lha'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |