Explorar el Código

modified jenkins file

Avinash hace 2 años
padre
commit
2da9807fa0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Jenkinsfile

.jenkins/Jenkinsfile → Jenkinsfile Ver fichero

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…
Cancelar
Guardar