Create experimental job for qtip integration 77/38577/3
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 2 Aug 2017 04:48:38 +0000 (12:48 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 2 Aug 2017 07:44:38 +0000 (15:44 +0800)
Note that

- experimental trigger is modified to allow trigger the build from
changes outside `tests` folder
- doctor jobs modified to adapt the change in common trigger

Change-Id: Iaaa26651f9ea1d14cb6c77a713ff657c330dce6e
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
jjb/doctor/doctor.yml
jjb/global/releng-macros.yml
jjb/qtip/qtip-integration-jobs.yml [new file with mode: 0644]

index c6b2cb6..a307b18 100644 (file)
         - '{auto-trigger-name}':
             project: '{project}'
             branch: '{branch}'
+            files: 'tests/**'
 
     builders:
         - shell: "[ -e tests/run.sh ] && bash -n ./tests/run.sh"
         - '{auto-trigger-name}':
             project: '{project}'
             branch: '{branch}'
+            files: 'tests/**'
 
     builders:
         - 'clean-workspace-log'
                     branch-pattern: '**/{branch}'
                 file-paths:
                   - compare-type: ANT
-                    pattern: 'tests/**'
+                    pattern: '{files}'
             skip-vote:
                 successful: true
                 failed: true
index 92199d6..89a3802 100644 (file)
                         branch-pattern: '**/{branch}'
                   file-paths:
                       - compare-type: 'ANT'
-                        pattern: 'tests/**'
+                        pattern: '{files}'
             skip-vote:
                 successful: true
                 failed: true
diff --git a/jjb/qtip/qtip-integration-jobs.yml b/jjb/qtip/qtip-integration-jobs.yml
new file mode 100644 (file)
index 0000000..a349fc3
--- /dev/null
@@ -0,0 +1,48 @@
+######################
+# verify before MERGE
+######################
+
+- project:
+    name: qtip-integration-jobs
+    project: qtip
+    jobs:
+        - 'qtip-storage-{stream}'
+    stream:
+        - master:
+            branch: '{stream}'
+            gs-pathname: ''
+            disabled: false
+
+################################
+## job templates
+#################################
+
+- job-template:
+    name: 'qtip-storage-{stream}'
+
+    disabled: '{obj:disabled}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+            branch: '{branch}'
+        # Pin the tests on zte-pod4 with apex deployment
+        - apex-defaults
+        - zte-pod4-defaults
+    scm:
+        - git-scm-gerrit
+
+    triggers:
+        - experimental:
+            project: {project}
+            branch: {branch}
+            files: '**'
+
+    builders:
+        - shell: |
+             #!/bin/bash
+                set -o errexit
+                set -o pipefail
+                set -o xtrace
+
+                source integration/storperf/storperf.sh