From: Alexandru Avadanii Date: Wed, 18 Sep 2019 10:46:28 +0000 (+0200) Subject: lf-display-node-uuid: Do not fail on static slaves X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=6df1b6bb01357c3e104829cff2d37eaac818071d lf-display-node-uuid: Do not fail on static slaves Not all Jenkins slaves are Openstack instances, which will obviously break the jobs trying to print the node's UUID. So make the UUID querying non-critical. Fixes: a919490352dbd01f08d0b78e935ef90778c77dff Change-Id: I1bb7f3414c18e2477a2b7bb55bd242c06431f614 Signed-off-by: Alexandru Avadanii --- diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index f750e29..8b3f331 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -81,7 +81,7 @@ builders: - shell: |2- echo "---> Node UUID:" - curl -s http://169.254.169.254/openstack/latest/meta_data.json | python -c 'import sys, json; data = json.load(sys.stdin); print(data["uuid"])' + curl -s http://169.254.169.254/openstack/latest/meta_data.json | python -c 'import sys, json; data = json.load(sys.stdin); print(data["uuid"])' || true - builder: name: ta-builder-tox