Change-Id: I64e0bfe812d96b4dbe780f74084efc4600fe357a
Signed-off-by: amin m <amin.m@nokia.com>
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
--- /dev/null
+- 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