qtip: Jobs for Brahamputra release 15/8315/10
authorNauman_Ahad <Nauman_Ahad@dell.com>
Thu, 28 Jan 2016 14:38:06 +0000 (19:38 +0500)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 8 Feb 2016 14:05:42 +0000 (14:05 +0000)
Placeholders for QTIP to run on other labs
as part of Brahamputra release were created.
The lab owners for the given lab names were contacted
and approved QTIP-CI Jobs.
All the Labs provided here are "non-CI" labs.

Change-Id: I597f07034317317caf55239325969dd40ebb8a27
Signed-off-by: Nauman_Ahad <Nauman_Ahad@dell.com>
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/opnfv/slave-params.yml
jjb/qtip/qtip-ci-jobs.yml [moved from jjb/qtip/qtip.yml with 53% similarity]
jjb/qtip/qtip-project-jobs.yml [new file with mode: 0644]

index e1f9e44..5e0274d 100644 (file)
             name: SSH_KEY
             default: /root/.ssh/id_rsa
             description: 'SSH key to use for Apex'
+
+- parameter:
+    name: 'dell-us-testing-bm-1-defaults'
+    parameters:
+        - node:
+            name: SLAVE_NAME
+            description: 'Slave name on Jenkins'
+            allowed-slaves:
+                - dell-us-testing-bm-1
+            default-slaves:
+                - dell-us-testing-bm-1
+        - string:
+            name: INSTALLER_VERSION
+            default: latest
+            description: 'Version of the installer to deploy'
+        - string:
+            name: GIT_BASE
+            default: https://gerrit.opnfv.org/gerrit/$PROJECT
+            description: 'Git URL to use on this Jenkins Slave'
+
+- parameter:
+    name: 'dell-us-deploying-bm3-defaults'
+    parameters:
+        - node:
+            name: SLAVE_NAME
+            description: 'Slave name on Jenkins'
+            allowed-slaves:
+                - dell-us-deploying-bm3
+            default-slaves:
+                - dell-us-deploying-bm3
+        - string:
+            name: INSTALLER_VERSION
+            default: latest
+            description: 'Version of the installer to deploy'
+        - string:
+            name: GIT_BASE
+            default: https://gerrit.opnfv.org/gerrit/$PROJECT
+            description: 'Git URL to use on this Jenkins Slave'
similarity index 53%
rename from jjb/qtip/qtip.yml
rename to jjb/qtip/qtip-ci-jobs.yml
index 450ba93..d33bdda 100644 (file)
+####################################
+# job configuration for qtip
+####################################
 - project:
-    name: qtip
-
-    project: '{name}'
-
-    jobs:
-        - 'qtip-verify-{stream}'
-        - 'qtip-{installer_type}-{pod}-daily-{stream}'
-
+    name: qtip-ci-jobs
+
+    project: 'qtip'
+
+#--------------------------------
+# BRANCH ANCHORS
+#--------------------------------
+    master: &master
+        stream: master
+        branch: '{stream}'
+        gs-pathname: ''
+    brahmaputra: &brahmaputra
+        stream: brahmaputra
+        branch: 'stable/{stream}'
+        gs-pathname: '{stream}'
+#--------------------------------
+# POD, INSTALLER, AND BRANCH MAPPING
+#--------------------------------
+#        brahmaputra
+#--------------------------------
     pod:
         - dell-us-testing-bm-1:
-           node: 'dell-us-testing-bm-1'
-           installer_type: 'fuel'
-           installer_ip: '10.20.0.2'
+            installer: compass
+            <<: *brahmaputra
+        - orange-pod2:
+            installer: joid
+            <<: *brahmaputra
         - dell-us-deploying-bm3:
-           node: 'dell-us-deploying-bm3'
-           installer_type: 'fuel'
-           installer_ip: '10.20.0.2'
-
-# only master branch is enabled at the moment to keep no of jobs sane
-    stream:
-        - master:
-            branch: 'master'
-            gs-pathname: ''
-#        - brahmaputra:
-#            branch: 'stable/brahmaputra'
-#            gs-pathname: '/brahmaputra'
-
-- job-template:
-    name: 'qtip-verify-{stream}'
-
-    parameters:
-        - project-parameter:
-            project: '{project}'
-        - gerrit-parameter:
-            branch: '{branch}'
-        - 'opnfv-build-defaults'
-
-    scm:
-        - gerrit-trigger-scm:
-            credentials-id: '{ssh-credentials}'
-            refspec: '$GERRIT_REFSPEC'
-            choosing-strategy: 'gerrit'
-
-    triggers:
-        - gerrit:
-            trigger-on:
-                - patchset-created-event:
-                    exclude-drafts: 'false'
-                    exclude-trivial-rebase: 'false'
-                    exclude-no-code-change: 'false'
-                - draft-published-event
-                - comment-added-contains-event:
-                    comment-contains-value: 'recheck'
-                - comment-added-contains-event:
-                    comment-contains-value: 'reverify'
-            projects:
-              - project-compare-type: 'ANT'
-                project-pattern: '{project}'
-                branches:
-                  - branch-compare-type: 'ANT'
-                    branch-pattern: '**/{branch}'
-                forbidden-file-paths:
-                  - compare-type: ANT
-                    pattern: 'docs/**|.gitignore'
-
-    builders:
-        - shell: |
-            echo "Nothing to verify!"
+            installer: fuel
+            <<: *brahmaputra
+
+#--------------------------------
+#        master
+#--------------------------------
+        - juniper-pod1:
+            installer: joid
+            <<: *master
+#      - zte-build-1:   #would be confirmed with the ZTE lab by tomorrow
+#            installer: fuel
+#            <<: *master
+
+#--------------------------------
+    jobs:
+        - 'qtip-{installer}-{pod}-daily-{stream}'
 
+################################
+# job templates
+################################
 - job-template:
-    name: 'qtip-{installer_type}-{pod}-daily-{stream}'
+    name: 'qtip-{installer}-{pod}-daily-{stream}'
 
     disabled: false
 
-    node: '{node}'
-
     parameters:
       - project-parameter:
           project: '{project}'
+      - '{pod}-defaults'
+      - '{installer}-defaults'
       - string:
-          name: INSTALLER_TYPE
-          default: '{installer_type}'
-          description: "Installer name that is used for deployment."
-      - string:
-          name: INSTALLER_IP
-          default: '{installer_ip}'
-          description: "Installer IP"
-      - string:
-          name: NODE_NAME
-          default: '{node}'
-          description: "Name of the POD"
-      - string:
-          name: GIT_BASE
-          default: https://gerrit.opnfv.org/gerrit/$PROJECT
-          description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
+          name: DEPLOY_SCENARIO
+          default: 'os-nosdn-nofeature-ha'
 
     scm:
        - git-scm:
            credentials-id: '{ssh-credentials}'
            refspec: ''
-           branch: master
+           branch: '{branch}'
 
     builders:
         - 'qtip-cleanup'
         - 'qtip-run-suite'
         - 'qtip-pushtoDB'
 
-    triggers:
-      - timed: '0 0,13,15,20 * * *'
-
+    publishers:
+        - email:
+            recipients: nauman.ahad@xflowresearch.com, mofassir.arif@xflowresearch.com, vikram@nvirters.com
 
 ###########################
 #biuilder macros
             envs="INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME}"
             suite="TEST_CASE=all"
             docker pull opnfv/qtip:latest
-
             cmd=" docker run -id -e $envs -e $suite opnfv/qtip:latest /bin/bash"
             echo "Qtip: Running docker run command: ${cmd}"
             ${cmd}
                     docker rmi opnfv/qtip:$tag
                 done
             fi
-
-- builder:
-    name: qtip-fetch-os-cred
-    builders:
-        - shell: |
-            #!/bin/bash
-
-            echo $HOME
-            echo $WORKSPACE
-            cd $WORKSPACE
-            git clone https://gerrit.opnfv.org/gerrit/releng
-            cd $WORKSPACE/releng/utils
-            #./fetch_os_creds.sh                  #To test the problem with creating the file in $HOME
-            ./fetch_os_creds.sh -d $WORKSPACE/opnfv-stack.sh    #To test if  the file can be created in $WORKSPACE
diff --git a/jjb/qtip/qtip-project-jobs.yml b/jjb/qtip/qtip-project-jobs.yml
new file mode 100644 (file)
index 0000000..c77bac7
--- /dev/null
@@ -0,0 +1,58 @@
+- project:
+    name: qtip
+
+    project: '{name}'
+
+    jobs:
+        - 'qtip-verify-{stream}'
+
+# only master branch is enabled at the moment to keep no of jobs sane
+    stream:
+        - master:
+            branch: '{stream}'
+            gs-pathname: ''
+        - brahmaputra:
+            branch: 'stable/{stream}'
+            gs-pathname: '/{stream}'
+
+- job-template:
+    name: 'qtip-verify-{stream}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+        - gerrit-parameter:
+            branch: '{branch}'
+        - 'opnfv-build-defaults'
+
+    scm:
+        - gerrit-trigger-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: '$GERRIT_REFSPEC'
+            choosing-strategy: 'gerrit'
+
+    triggers:
+        - gerrit:
+            trigger-on:
+                - patchset-created-event:
+                    exclude-drafts: 'false'
+                    exclude-trivial-rebase: 'false'
+                    exclude-no-code-change: 'false'
+                - draft-published-event
+                - comment-added-contains-event:
+                    comment-contains-value: 'recheck'
+                - comment-added-contains-event:
+                    comment-contains-value: 'reverify'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+                forbidden-file-paths:
+                  - compare-type: ANT
+                    pattern: 'docs/**|.gitignore'
+
+    builders:
+        - shell: |
+            echo "Nothing to verify!"