Switch the csit-openstack to use job prefix 52/67552/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 24 Jan 2018 19:36:21 +0000 (14:36 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 24 Jan 2018 19:36:39 +0000 (14:36 -0500)
Idea to add a new variable "{prefix}" to job templates. This
variable is defined already in defaults.yaml.
The prefix should always be blank in production thus producing the
same existing job names we are all used to. The prefix can be used
locally to add a prefix to job names when pushing jobs to the
sandbox. For example a prefix of "abc-" will be added to the front
of the job name allowing sandbox testers to be able to push a job
to the sandbox with a unique prefix to not overwrite other testers.

Additionally add an id inttest-csit-openstack to make the job
template more easy to maintain. Allows us to refactor the job
template name without having to update every single user of the
template every time as the id will always be the same.

Change-Id: Ic1a261c4860436082c982dcf18fb118d46d5f9ec
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/groupbasedpolicy/groupbasedpolicy-csit-1node-openstack.yaml
jjb/integration/integration-templates.yaml
jjb/netvirt/netvirt-csit-multi-openstack.yaml
jjb/vtn/vtn-manager-csit-1node-openstack.yaml

index e258a3bf7297c54c111cd739cc7a5f161e1840f1..208341cb8a4c72aa5e1101721db66fcca9c67329 100644 (file)
@@ -2,7 +2,7 @@
 - project:
     name: groupbasedpolicy-csit-openstack-integration
     jobs:
-      - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+      - inttest-csit-openstack
 
     # The project name
     project: 'groupbasedpolicy'
index f96a41b93c1a9bf6e66840b912e271265bd009bd..94794d17fe8d64459eaf41bbd4b9af1099311c16 100644 (file)
       - lf-infra-publish
 
 - job-template:
-    name: '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+    name: '{prefix}{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+    id: inttest-csit-openstack
     disabled: false
 
     project-type: freestyle
index 74eb730a2fcca9ed0bebe4888209c1de4936d563..f666c6abb598a098c1814da602fdb04f692a8a80 100644 (file)
@@ -2,7 +2,7 @@
 - project:
     name: netvirt-csit-openstack-integration-oxygen
     jobs:
-      - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+      - inttest-csit-openstack
 
     project: 'netvirt'
     stream: 'oxygen'
@@ -60,7 +60,7 @@
 - project:
     name: netvirt-csit-openstack-integration-nitrogen
     jobs:
-      - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+      - inttest-csit-openstack
 
     project: 'netvirt'
     stream: 'nitrogen'
 - project:
     name: netvirt-csit-openstack-integration-carbon
     jobs:
-      - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+      - inttest-csit-openstack
 
     project: 'netvirt'
     stream: 'carbon'
 - project:
     name: netvirt-csit-sfc-openstack-integration
     jobs:
-      - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+      - inttest-csit-openstack
 
     project: 'netvirt'
     security-group-mode: 'stateful'
index adf0e0af09d558f24d62ebaf2e9a5e7d4b9cb482..ef610d940f4435f5fd2fa8c26c5f451cde69866e 100644 (file)
@@ -2,7 +2,7 @@
 - project:
     name: vtn-manager-csit-openstack-integration
     jobs:
-      - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
+      - inttest-csit-openstack
 
     # The project name
     project: 'vtn'