Explorar o código

jenkins squirrel

ksieren %!s(int64=3) %!d(string=hai) anos
pai
achega
796c3f5ea0
Modificáronse 1 ficheiros con 3 adicións e 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"
             }
           }
         }