From: Jessica Wagantall Date: Wed, 11 Sep 2019 18:13:06 +0000 (-0700) Subject: Add node UUI display macro X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F1569%2F1;p=ci-management.git Add node UUI display macro Add macro to display node's UUID Add macro to ta-ci-build Signed-off-by: Jessica Wagantall Change-Id: I7d6b43c771718c2458ed2405d90998403e8fdf5e --- diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index 51095f5..7006eac 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -76,6 +76,13 @@ ########### # BUILDER # ########### +- builder: + name: lf-display-node-uuid + 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"])' + - builder: name: ta-builder-tox builders: diff --git a/jjb/akraino-templates/akraino-ta-common-templates.yaml b/jjb/akraino-templates/akraino-ta-common-templates.yaml index e1ecc08..123fda6 100644 --- a/jjb/akraino-templates/akraino-ta-common-templates.yaml +++ b/jjb/akraino-templates/akraino-ta-common-templates.yaml @@ -252,6 +252,7 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' builders: + - lf-display-node-uuid - ta-builder-scm: git-url: '{git-url}' project: 'ta/manifest'