Files
jenkins-casc/Jenkinsfile
T
matthias 209b19cd0c
kaniko-test/pipeline/head There was a failure building this commit
Jenkinsfile aktualisiert
2025-03-11 00:31:51 +00:00

41 lines
802 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 bud -t my-jenkins-casc:latest .'
sh 'buildah images'
}
container('busybox') {
sh 'ls -lha'
}
}
}
}
}