diff options
author | 2019-04-16 10:14:40 -0700 | |
---|---|---|
committer | 2019-05-03 15:19:48 +0000 | |
commit | 67ecb22ed6f60b5f765d9c5c8c41b837366dc819 (patch) | |
tree | 587081927df5ca1b34b5e0e8e6a79503ee722a0b /jjb/common/include-agl-lava-jobs-submit.sh | |
parent | 9ad56d166d657f9c22309949e558b3073db5d1fc (diff) |
jjb/common: lava-jobs-submit: fix email token check
Fix the logic to check if the email auth token is present.
While at it, make output more verbose for easier debug.
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
(cherry picked from commit b9f7f8928ab26f15f0950d00a7f2417ffa204755)
Change-Id: Iceb00e5617cbfb787353c7caf05e5d00e9512d70
Diffstat (limited to 'jjb/common/include-agl-lava-jobs-submit.sh')
-rw-r--r-- | jjb/common/include-agl-lava-jobs-submit.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index 93f8b703..c221b7e7 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -90,7 +90,8 @@ echo "####" # ask for email report -if [ -z "$KCI_EMAIL_AUTH_TOKEN" ]; then +set -x +if [ -n "$KCI_EMAIL_AUTH_TOKEN" ]; then KCI_API='https://kernelci.dev.baylibre.com:8081' TREE_NAME=$(grep kernel.tree: $JOB_FILE_NEW | sed 's,[[:space:]],,g' | cut -d: -f2) BRANCH=$(grep git.branch: $JOB_FILE_NEW | sed 's,[[:space:]],,g' | cut -d: -f2) @@ -110,6 +111,8 @@ if [ -z "$KCI_EMAIL_AUTH_TOKEN" ]; then fi set -e fi +set +x + # after one successful submit, we're done if [ x"$status" = x"Complete" ]; then exit 0 |