changed Dockerfile double to single quotes
Some checks failed
Tests / Declarative: Post Actions passed: 1
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-06 14:45:45 +02:00
parent 7883ea0d0e
commit 05c9550185

6
Jenkinsfile vendored
View File

@@ -75,7 +75,7 @@ pipeline {
}
}
}
stage('Set Build Name') {
steps {
script {
@@ -92,7 +92,7 @@ pipeline {
withCredentials([usernamePassword(credentialsId: 'gitea-registry-token',
usernameVariable: 'GITEA_USER',
passwordVariable: 'GITEA_TOKEN')]) {
sh """
sh '''
# 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
@@ -103,7 +103,7 @@ pipeline {
--dockerfile `pwd`/Dockerfile \
--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}
"""
'''
}
}
}