changed Dockerfile double to single quotes
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -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}
|
||||
"""
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user