Browse Source

modified jenkins file

Avinash 1 year ago
parent
commit
2da9807fa0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Jenkinsfile

.jenkins/Jenkinsfile → Jenkinsfile View File

85
 
85
 
86
     // Check for changes
86
     // Check for changes
87
     sh """
87
     sh """
88
-        git checkout ${env.BRANCH_NAME}
88
+        git pull origin ${env.BRANCH_NAME}
89
         git add .
89
         git add .
90
         git commit -m "Moved processed XML files to backup"
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…
Cancel
Save