From: amin m Date: Tue, 6 Aug 2019 09:48:30 +0000 (+0200) Subject: Creating cloudtaf.yaml X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F1327%2F4;p=ci-management.git Creating cloudtaf.yaml Change-Id: I64e0bfe812d96b4dbe780f74084efc4600fe357a Signed-off-by: amin m --- 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