Containers Team 2018-12-14 12:46:34 +00:00 committed by Git OBS Bridge
parent 1cd1e7b36e
commit d715fee5ce
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Dec 14 12:46:22 UTC 2018 - Containers Team <containers-bugowner@suse.de>
- Commit 6649435 by David Cassany dcassany@suse.de
Do not fail if no new change log entries are found
This commit makes pre_checkin.sh script to exit 0 if no new changelog
entries are found (when using --mkchanges flag). This way the CI does not
report a failre when it is executed having nothing new to commit at OBS.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 12 09:21:19 UTC 2018 - Containers Team <containers-bugowner@suse.de> Wed Dec 12 09:21:19 UTC 2018 - Containers Team <containers-bugowner@suse.de>

View File

@ -6,6 +6,7 @@
log() { echo ">>> $@" ; } log() { echo ">>> $@" ; }
abort() { log "FATAL: $@" ; exit 1 ; } abort() { log "FATAL: $@" ; exit 1 ; }
endScript() { log "EXITING: $@" ; exit 0 ; }
usage() { usage() {
cat <<USAGE cat <<USAGE
usage: usage:
@ -39,7 +40,7 @@ make_changes_file() {
${previous_commit} -- pre_checkin.sh \ ${previous_commit} -- pre_checkin.sh \
"${image}" | sed "1 s/- \(.*$\)/\1/") "${image}" | sed "1 s/- \(.*$\)/\1/")
popd 1> /dev/null popd 1> /dev/null
[ -z "${changes_log}" ] && abort "Missing new changelog entries" [ -z "${changes_log}" ] && endScript "Missing new changelog entries"
osc vc ${changes_file} -m "${changes_log}" osc vc ${changes_file} -m "${changes_log}"
} }

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:e7b8b24078087555c38a79799841701026dfb612efb7e66f17bfe8a5c00b4123 oid sha256:67ec9c0c7326f2489c891dfaaf27c997e9a5becb5d3a91aa27a8d32d9a0949ab
size 2057 size 2057