Jenkinsfile aktualisiert
kaniko-test/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2025-03-11 00:52:50 +00:00
parent 52b74a4994
commit b08eed5862
Vendored
+9 -18
View File
@@ -9,31 +9,22 @@ pipeline {
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
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
args:
- "--dockerfile=Dockerfile"
- "--context=."
- "--no-push"
'''
retries 2
}
}
stages {
stage('Run buildah') {
stage('Run kaniko') {
steps {
container('buildah') {
sh 'ls -lha'
sh 'buildah images'
sh 'buildah bud -t my-jenkins-casc:latest .'
sh 'buildah images'
}
container('busybox') {
container('kaniko') {
sh 'ls -lha'
}
}
}