night jobs should exit succeed if no need to run

This commit is contained in:
Yinling 2016-09-29 20:21:33 +08:00 committed by Angus Gratton
parent 547fb6ed6c
commit 12fa7472ea

View file

@ -160,7 +160,7 @@ push_master_to_github:
- triggers
script:
# must be night build triggers, otherwise exit without test
- test $NIGHT_BUILD != "Yes" || exit 0
- test $NIGHT_BUILD = "Yes" || exit 0
# add gitlab ssh key
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh