summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index ac13c16..8c386c2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -8,12 +8,14 @@ node("master") {
checkout scm
dir("/home/oleg/majordomo") {
- List<String> gitDirectories = (sh (script: "ls --directory -1 */*", returnStdout: true)).split("\n")
+ List<String> gitDirectories = (sh (script: 'ls --directory -1 */*', returnStdout: true)).split("\n")
gitDirectories.collate(params.PARALLEL.toInteger())
.each { directories ->
parallel (directories.collectEntries { directory ->
[(directory): {warnError("Failed to update Git repository in $directory"){
- sh "git -C $directory checkout master || git -C $directory pull --rebase; git -C $directory pull --rebase"
+ sh (["git -C $directory checkout master || true",
+ "git -C $directory pull --rebase",
+ "$WORKSPACE/clean.sh $directory"].join("; "))
}}]
})
}