diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2020-02-19 23:09:20 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2020-02-19 23:40:23 +0300 |
| commit | 6290be5e1406d883a3c644231c3ef137cba90e7e (patch) | |
| tree | 6e5e04057cff4d0ee3ecbb70b1370f8383901e2f | |
| parent | Initial commit. (diff) | |
| download | majordomo-maintenance-6290be5e1406d883a3c644231c3ef137cba90e7e.tar.gz | |
Jenkinsfile: Invoke git checkout before pull.
| -rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 4443066..ccdd2d4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ pipeline { stage("Invoking git clone") { steps { dir("/home/oleg/majordomo") { - sh 'for dir in */*; do git -C $dir pull --rebase; done' + sh 'for dir in */*; do git -C $dir checkout master || git -C $dir pull --rebase; git -C $dir pull --rebase; done' } } } |
