X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fakraino-templates%2Fakraino-ta-common-macros.yaml;h=7006eac9ae0126f3acd303b2dc2a99a7c11493a5;hp=24436b9e81297f8eb6c40f16f88ab4c9a164c271;hb=605a84f23c42ebe91add58935901d4ac2ec3bfa9;hpb=1eac22a1080099201d919b57dd6392ffae8cb1e9 diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index 24436b9..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: @@ -93,13 +100,17 @@ name: ta-builder-rpm builders: - shell: |2- - sudo yum install -y createrepo - ta/build-tools/build_rpms.sh \ - -m ta/manifest \ - -r ta/rpmbuilder \ - -w work \ - {project-to-build} - find work/ + # Skip RPM build in case no *.spec file is found within the {project-to-build} + if [ -n "$(find {project-to-build} -name '*.spec')" ] + then + sudo yum install -y createrepo + ta/build-tools/build_rpms.sh \ + -m ta/manifest \ + -r ta/rpmbuilder \ + -w work \ + {project-to-build} + find work/ + fi - builder: name: ta-builder-scm @@ -135,6 +146,8 @@ - ../shell/ta-rpm-deploy.sh - shell: !include-raw: - ../../global-jjb/shell/logs-clear-credentials.sh + - inject: + properties-content: 'ALT_NEXUS_URL=' - builder: name: ta-lf-infra-ship-isos