Salīdzināt revīzijas
3 Revīzijas
mobil_0909
...
master
| Autors | SHA1 | Datums | |
|---|---|---|---|
| b4377391ca | |||
| 7689775c5a | |||
| 6efe08379f |
+11
-9
@@ -26,6 +26,10 @@ pipeline {
|
|||||||
env.BASE_URL = "https://qa.anwisystems.com/Account/Import/"
|
env.BASE_URL = "https://qa.anwisystems.com/Account/Import/"
|
||||||
env.AUTH_TOKEN = "541c35d52a7b449f956175992619ed3a"
|
env.AUTH_TOKEN = "541c35d52a7b449f956175992619ed3a"
|
||||||
break
|
break
|
||||||
|
case "c02_version1.0":
|
||||||
|
env.BASE_URL = "https://uat01.bizgaze.com/Account/Import/"
|
||||||
|
env.AUTH_TOKEN = "572577b630b66235e102a1832e0181"
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
error "Unknown branch: ${BRANCH_NAME}. Exiting."
|
error "Unknown branch: ${BRANCH_NAME}. Exiting."
|
||||||
}
|
}
|
||||||
@@ -39,6 +43,10 @@ pipeline {
|
|||||||
process_folder('./app', 'app')
|
process_folder('./app', 'app')
|
||||||
process_folder('./report', 'report')
|
process_folder('./report', 'report')
|
||||||
process_folder('./form', 'form')
|
process_folder('./form', 'form')
|
||||||
|
process_folder('./doctype', 'doctype')
|
||||||
|
process_folder('./integrations', 'integrations')
|
||||||
|
process_folder('./portability', 'portability')
|
||||||
|
process_folder('./widget', 'widget')
|
||||||
commitChanges()
|
commitChanges()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -92,16 +100,10 @@ def commitChanges() {
|
|||||||
// Check for changes
|
// Check for changes
|
||||||
sh """
|
sh """
|
||||||
git checkout ${env.BRANCH_NAME}
|
git checkout ${env.BRANCH_NAME}
|
||||||
git status
|
|
||||||
git pull origin ${env.BRANCH_NAME}
|
git pull origin ${env.BRANCH_NAME}
|
||||||
# Only proceed if there are changes
|
git add .
|
||||||
if [[ $(git status -s) ]]; then
|
git commit -m "Moved processed XML files to backup"
|
||||||
git add .
|
git push --force https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
||||||
git commit -m "Moved processed XML files to backup"
|
|
||||||
git push https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
|
||||||
else
|
|
||||||
echo "No changes to commit."
|
|
||||||
fi
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
||||||
Atsaukties uz šo jaunā problēmā
Block a user