diff --git a/Jenkinsfile b/Jenkinsfile index 74cfdd6..f343f6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -80,6 +80,13 @@ spec: } } } + stage('Change deployment.yaml to include nexus-secret') { + steps { + container('maven') { + sh 'sed -i '/containers:/i\ imagePullSecrets:\n - name: nexus-secret' target/helm/kubernetes/example-app/templates/deployment.yaml' + } + } + } stage('Make chart') { steps { container('helm') {