Merge "Add node UUI display macro"
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 11 Sep 2019 20:12:57 +0000 (20:12 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Wed, 11 Sep 2019 20:12:57 +0000 (20:12 +0000)
jjb/akraino-templates/akraino-ta-common-macros.yaml
jjb/akraino-templates/akraino-ta-common-templates.yaml

index 51095f5..7006eac 100644 (file)
 ###########
 # 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:
index e1ecc08..123fda6 100644 (file)
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
 
     builders:
+      - lf-display-node-uuid
       - ta-builder-scm:
           git-url: '{git-url}'
           project: 'ta/manifest'