From: Thanh Ha Date: Wed, 24 Jan 2018 19:36:21 +0000 (-0500) Subject: Switch the csit-openstack to use job prefix X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=f7f7dd5c0dd87cbdb568333e0b12c1656664200e;p=releng%2Fbuilder.git Switch the csit-openstack to use job prefix 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 --- diff --git a/jjb/groupbasedpolicy/groupbasedpolicy-csit-1node-openstack.yaml b/jjb/groupbasedpolicy/groupbasedpolicy-csit-1node-openstack.yaml index e258a3bf72..208341cb8a 100644 --- a/jjb/groupbasedpolicy/groupbasedpolicy-csit-1node-openstack.yaml +++ b/jjb/groupbasedpolicy/groupbasedpolicy-csit-1node-openstack.yaml @@ -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' diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index f96a41b93c..94794d17fe 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -1209,7 +1209,8 @@ - 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 diff --git a/jjb/netvirt/netvirt-csit-multi-openstack.yaml b/jjb/netvirt/netvirt-csit-multi-openstack.yaml index 74eb730a2f..f666c6abb5 100644 --- a/jjb/netvirt/netvirt-csit-multi-openstack.yaml +++ b/jjb/netvirt/netvirt-csit-multi-openstack.yaml @@ -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' @@ -118,7 +118,7 @@ - project: name: netvirt-csit-openstack-integration-carbon jobs: - - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}' + - inttest-csit-openstack project: 'netvirt' stream: 'carbon' @@ -171,7 +171,7 @@ - project: name: netvirt-csit-sfc-openstack-integration jobs: - - '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}' + - inttest-csit-openstack project: 'netvirt' security-group-mode: 'stateful' diff --git a/jjb/vtn/vtn-manager-csit-1node-openstack.yaml b/jjb/vtn/vtn-manager-csit-1node-openstack.yaml index adf0e0af09..ef610d940f 100644 --- a/jjb/vtn/vtn-manager-csit-1node-openstack.yaml +++ b/jjb/vtn/vtn-manager-csit-1node-openstack.yaml @@ -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'