From fac1974adad619e6080042852f19187cdcafb124 Mon Sep 17 00:00:00 2001 From: amin m Date: Tue, 6 Aug 2019 11:48:30 +0200 Subject: [PATCH] Creating cloudtaf.yaml Change-Id: I64e0bfe812d96b4dbe780f74084efc4600fe357a Signed-off-by: amin m --- jjb/akraino-templates/akraino-ta-common-macros.yaml | 18 +++++++++++------- jjb/ta/cloudtaf.yaml | 10 ++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 jjb/ta/cloudtaf.yaml diff --git a/jjb/akraino-templates/akraino-ta-common-macros.yaml b/jjb/akraino-templates/akraino-ta-common-macros.yaml index df49779..51095f5 100644 --- a/jjb/akraino-templates/akraino-ta-common-macros.yaml +++ b/jjb/akraino-templates/akraino-ta-common-macros.yaml @@ -93,13 +93,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 diff --git a/jjb/ta/cloudtaf.yaml b/jjb/ta/cloudtaf.yaml new file mode 100644 index 0000000..55b397d --- /dev/null +++ b/jjb/ta/cloudtaf.yaml @@ -0,0 +1,10 @@ +- project: + name: ta-cloudtaf + project: ta/cloudtaf + project-name: ta-cloudtaf + project-type: + - verify + build-node: centos7-builder-2c-1g + stream: master + jobs: + - akraino-project-stream-type-ta -- 2.16.6