Fix compass jobs to stop using hardcoded branch name 17/4417/3
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Sun, 13 Dec 2015 00:54:02 +0000 (01:54 +0100)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 15 Dec 2015 09:10:01 +0000 (09:10 +0000)
Some jobs use hardcoded branch name master which will cause issues
when we branch for brahmaputra. In order to use var for branch name
some jobs appended stream.

Please note that this will result in removal of the jobs without stream
in them and creation of new ones, causing you to lose logs.

Change-Id: I65b498b189941f7137786c5d230373c7f5ecd492
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/compass4nfv/compass4nfv.yml

index 4040201..1a0a6f7 100644 (file)
@@ -7,8 +7,8 @@
     jobs:
         - 'compass-verify-{stream}'
         - 'compass-daily-{stream}'
-        - 'compass-build-iso'
-        - 'compass-build-ppa'
+        - 'compass-build-iso-{stream}'
+        - 'compass-build-ppa-{stream}'
         - 'compass-deploy-virtual-{flavor}'
         - 'compass-deploy-bare-huawei-us'
 
@@ -56,7 +56,7 @@
         - project-parameter:
             project: '{project}'
         - gerrit-parameter:
-            branch: 'master'
+            branch: '{branch}'
         - compass-parameter:
             installer: '{installer}'
         - string:
@@ -86,7 +86,7 @@
                 project-pattern: '{project}'
                 branches:
                   - branch-compare-type: 'ANT'
-                    branch-pattern: '**/master'
+                    branch-pattern: '**/{branch}'
                 forbidden-file-paths:
                   - compare-type: ANT
                     pattern: 'docs/**|.gitignore'
             block: true
 
 - job-template:
-    name: 'compass-build-iso'
+    name: 'compass-build-iso-{stream}'
 
     node: ericsson-build
 
         - git-scm:
             credentials-id: '{ssh-credentials}'
             refspec: ''
-            branch: 'master'
+            branch: '{branch}'
 
     builders:
         - 'builder-compass-build-iso'
         - 'builder-compass-workspace-cleanup'
 
 - job-template:
-    name: 'compass-build-ppa'
+    name: 'compass-build-ppa-{stream}'
 
     description: "build ppa(using docker) in huawei lab"
 
         - git-scm:
             credentials-id: '{ssh-credentials}'
             refspec: ''
-            branch: 'master'
+            branch: '{branch}'
 
     triggers:
         - timed: 'H 16 * * *'