Explorar el Código

jenkins squirrel

ksieren hace 3 años
padre
commit
796c3f5ea0
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      Jenkinsfile

+ 3 - 4
Jenkinsfile

@@ -84,11 +84,10 @@ spec:
               yq eval '.image.repository = env(IMAGE_REPO)' -i values.yaml
               yq eval '.image.tag = env(GIT_COMMIT)' -i values.yaml
               cat values.yaml
-              pwd
-              git add values.yaml
-              git commit -m "Triggered Build '$GIT_COMMIT'"
-              git push https://$HELM_GIT_REPO_URL --force
             '''
+              sh "git add values.yaml"
+              sh 'git commit -m "Triggered Build '$GIT_COMMIT'"'
+              sh "git push https://$HELM_GIT_REPO_URL --force"
             }
           }
         }