Creating cloudtaf.yaml 27/1327/4
authoramin m <amin.m@nokia.com>
Tue, 6 Aug 2019 09:48:30 +0000 (11:48 +0200)
committeramin m <amin.m@nokia.com>
Mon, 26 Aug 2019 10:45:24 +0000 (12:45 +0200)
Change-Id: I64e0bfe812d96b4dbe780f74084efc4600fe357a
Signed-off-by: amin m <amin.m@nokia.com>
jjb/akraino-templates/akraino-ta-common-macros.yaml
jjb/ta/cloudtaf.yaml [new file with mode: 0644]

index df49779..51095f5 100644 (file)
     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 (file)
index 0000000..55b397d
--- /dev/null
@@ -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