added push-retry for kaniko
All checks were successful
Tests / Declarative: Post Actions passed: 1
csharp-secdevops-pipeline-pod/pipeline/head This commit looks good

This commit is contained in:
2026-05-07 10:45:20 +02:00
parent 2f43fb824d
commit 6b96f83e51

3
Jenkinsfile vendored
View File

@@ -95,7 +95,7 @@ pipeline {
sh '''
# WORKAROUND: Dem Container beibringen, wer git.example.com ist
echo "130.61.26.230 git.example.com" >> /etc/hosts
# Erstellt die Docker-Konfiguration für Kaniko
# Das $(echo ...) Kommando kombiniert User und Token für den Login
echo "{\\"auths\\":{\\"130.61.26.230:30080\\":{\\"auth\\":\\"\$(echo -n \${GITEA_USER}:\${GITEA_TOKEN} | base64)\\"}}}" > /kaniko/.docker/config.json
@@ -105,6 +105,7 @@ pipeline {
/kaniko/executor --context `pwd` \
--dockerfile `pwd`/Dockerfile \
--insecure \
--push-retry 5 \
--skip-tls-verify \
--destination 130.61.26.230:30080/dev-master/secdevops-csharp-app:latest \
--destination 130.61.26.230:30080/dev-master/secdevops-csharp-app:${BUILD_NUMBER}