diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2021-11-08 22:29:44 +0100 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2021-11-08 22:29:44 +0100 |
commit | a8e1e687172ea72c326cf177845c23159c8780f2 (patch) | |
tree | f1f942458957d90637b7bd96541596d6899c67b0 | |
parent | d4cf4fb8b6b85c34495086d1af2fa05ea5b4174f (diff) |
Workaround kernelci publisher issue
Make sure we do have valid parameters.
Change-Id: I007fecd0abc1f2525ad511fbe65a39228e7e22b6
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
-rw-r--r-- | jjb/ci-apps-verify/ci-apps-jjb.yaml | 2 | ||||
-rw-r--r-- | jjb/common/include-agl-kci-publish-build-meta.sh | 41 |
2 files changed, 24 insertions, 19 deletions
diff --git a/jjb/ci-apps-verify/ci-apps-jjb.yaml b/jjb/ci-apps-verify/ci-apps-jjb.yaml index bb14e19f..7de9694d 100644 --- a/jjb/ci-apps-verify/ci-apps-jjb.yaml +++ b/jjb/ci-apps-verify/ci-apps-jjb.yaml @@ -2,7 +2,7 @@ - project: name: ci-apps-AGL aglbranch: - - master + #- master - icefish - jellyfish - koi diff --git a/jjb/common/include-agl-kci-publish-build-meta.sh b/jjb/common/include-agl-kci-publish-build-meta.sh index 26db2385..1c586a45 100644 --- a/jjb/common/include-agl-kci-publish-build-meta.sh +++ b/jjb/common/include-agl-kci-publish-build-meta.sh @@ -68,38 +68,43 @@ kci-publish() { ;; esac +set -x +set +e + DIST_BUILD_HASH="$BUILD_VERSION" + echo "DEBUG: generate bmeta for kernelCI" echo "DEBUG: machine ${TARGETMACHINE}" echo "DEBUG: build_version $BUILD_VERSION" echo "DEBUG: commit $DIST_BUILD_HASH" echo "DEBUG: arch $TARGETARCH" echo "DEBUG: branch $GERRIT_BRANCH" + DIST_BUILD_HASH="$BUILD_VERSION" - [[ -z $DIST_BUILD_HASH ]] && DIST_BUILD_HASH="$BUILD_VERSION" - - $RELENG/utils/agl-publish.py --machine ${TARGETMACHINE} \ - --build_version $BUILD_VERSION \ - --commit $DIST_BUILD_HASH \ - --arch $TARGETARCH \ - --fsr $FSR \ - --branch $GERRIT_BRANCH \ - --kernel_version $KERNEL_VERSION \ - --api http://kernelci.dev.baylibre.com:8081/ + $RELENG/utils/agl-publish.py --machine "${TARGETMACHINE}" \ + --build_version "$BUILD_VERSION" \ + --commit "$BUILD_VERSION" \ + --arch "$TARGETARCH" \ + --fsr "$FSR" \ + --branch "$GERRIT_BRANCH" \ + --kernel_version "$BUILD_VERSION" \ + --api http://kernelci.dev.baylibre.com:8081/ || true - $RELENG/utils/agl-publish.py --machine ${TARGETMACHINE} \ - --build_version $BUILD_VERSION \ - --commit $DIST_BUILD_HASH \ - --arch $TARGETARCH \ - --fsr $FSR \ - --branch $GERRIT_BRANCH \ - --kernel_version $KERNEL_VERSION \ - --api https://kernelci.automotivelinux.org:8081/ + $RELENG/utils/agl-publish.py --machine "${TARGETMACHINE}" \ + --build_version "$BUILD_VERSION" \ + --commit "$BUILD_VERSION" \ + --arch "$TARGETARCH" \ + --fsr "$FSR" \ + --branch "$GERRIT_BRANCH" \ + --kernel_version "$BUILD_VERSION" \ + --api https://kernelci.automotivelinux.org:8081/ || true # DEBUG purpose, verify what is uploaded if [ -e agl-build-meta ];then find agl-build-meta -type f | xargs cat else echo "ERROR: no agl-build-meta directory" fi +set +x +set -e return 0 } |