Add macro to display node's UUID
Add macro to ta-ci-build
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I7d6b43c771718c2458ed2405d90998403e8fdf5e
###########
# 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:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
builders:
+ - lf-display-node-uuid
- ta-builder-scm:
git-url: '{git-url}'
project: 'ta/manifest'