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' } } } } }