From c2690394808d62b7f56c9b862acf61fa39dfda55 Mon Sep 17 00:00:00 2001 From: dresi Date: Wed, 5 Nov 2025 13:55:14 +0100 Subject: [PATCH] Jenkinsfile aktualisiert --- Jenkinsfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b070540..4176dea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,15 +32,20 @@ pipeline { stages { stage('Build Docker image') { steps { - container('kaniko') { - sh 'docker build -t andreas/rsyncd .' - sh 'docker images' + container(name: 'kaniko', shell: '/busybox/sh') { + sh '''#!/busybox/sh + + /kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination=andreas/rsyncd:latest + ''' } } } stage('Tag Docker image') { steps { - sh 'ls -la' + container('kaniko') { + sh 'docker images' + sh 'ls -la' + } } } }