瀏覽代碼

modified jenkins file

Avinash 1 年之前
父節點
當前提交
2da9807fa0
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      Jenkinsfile

.jenkins/Jenkinsfile → Jenkinsfile 查看文件

@@ -85,10 +85,10 @@ def commitChanges() {
85 85
 
86 86
     // Check for changes
87 87
     sh """
88
-        git checkout ${env.BRANCH_NAME}
88
+        git pull origin ${env.BRANCH_NAME}
89 89
         git add .
90 90
         git commit -m "Moved processed XML files to backup"
91
-        git push https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
91
+        git push --force https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
92 92
     """
93 93
 }
94 94
 

Loading…
取消
儲存