Jim Klimov
2023-11-06 03bb1239994a37ecd6adf88f0b70304ca7fae694
jenkinshelper*.ksh: stage_build_changed(): do not lose track of failures

2 files modified
10 ■■■■■ changed files
tools/jenkinshelper-main.ksh 5 ●●●●● patch | view | raw | blame | history
tools/jenkinshelper.ksh 5 ●●●●● patch | view | raw | blame | history
tools/jenkinshelper-main.ksh
@@ -56,6 +56,7 @@
# the components Makefile also (to update COMPONENT_REVISION, etc)
stage_build_changed() {
    echo "Last successful commit $1"
    worst=0
    for f in $(git diff --name-only HEAD^1 | grep Makefile; exit 0); do
        echo "jenkinshelper: building for ${f%/*}..."
        curpwd=$(pwd)
@@ -63,7 +64,11 @@
        rc=$?
        cd "${curpwd}"
        echo "jenkinshelper: done with ${f%/*} return code ${rc}"
        if [ rc -ne 0 ] ; then
            worst=$rc
        fi
    done
    return $worst
}
# prepare the pkg.depotd server instance, if an instance already
tools/jenkinshelper.ksh
@@ -55,6 +55,7 @@
# we try to be smart and assume that all updates will always touch
# the components Makefile also (to update COMPONENT_REVISION, etc)
stage_build_changed() {
    worst=0
    for f in $(git diff --name-only HEAD..origin/oi/hipster | grep Makefile; exit 0); do
        echo "jenkinshelper: building for ${f%/*}..."
        curpwd=$(pwd)
@@ -62,7 +63,11 @@
        rc=$?
        cd "${curpwd}"
        echo "jenkinshelper: done with ${f%/*} return code ${rc}"
        if [ rc -ne 0 ] ; then
            worst=$rc
        fi
    done
    return $worst
}
# prepare the pkg.depotd server instance, if an instance already