From: Thanh Ha Date: Wed, 24 Jan 2018 19:30:13 +0000 (-0500) Subject: Switch the csit-3node-periodic to use job prefix X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=6db8417d12d51bfd4a934b4c4c48afe72aad32db;p=releng%2Fbuilder.git Switch the csit-3node-periodic 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-3node-periodic 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: I732dd5120b2005c5e975f68f7d99a98c1203ebe5 Signed-off-by: Thanh Ha --- diff --git a/jjb/bgpcep/bgpcep-csit-bgpclustering-ha.yaml b/jjb/bgpcep/bgpcep-csit-bgpclustering-ha.yaml index 2ba4c45cac..3f5f7270fa 100644 --- a/jjb/bgpcep/bgpcep-csit-bgpclustering-ha.yaml +++ b/jjb/bgpcep/bgpcep-csit-bgpclustering-ha.yaml @@ -2,7 +2,7 @@ - project: name: bgpcep-csit-bgpclustering-ha jobs: - - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + - inttest-csit-3node-periodic # The project name project: 'bgpcep' diff --git a/jjb/bgpcep/bgpcep-csit-bgpclustering.yaml b/jjb/bgpcep/bgpcep-csit-bgpclustering.yaml index d3ff23c59c..43a1ef1881 100644 --- a/jjb/bgpcep/bgpcep-csit-bgpclustering.yaml +++ b/jjb/bgpcep/bgpcep-csit-bgpclustering.yaml @@ -2,7 +2,7 @@ - project: name: bgpcep-csit-bgpclustering jobs: - - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + - inttest-csit-3node-periodic # The project name project: 'bgpcep' diff --git a/jjb/controller/controller-csit-periodic-dsbenchmark-cluster.yaml b/jjb/controller/controller-csit-periodic-dsbenchmark-cluster.yaml index eba3e22586..f308a1632e 100644 --- a/jjb/controller/controller-csit-periodic-dsbenchmark-cluster.yaml +++ b/jjb/controller/controller-csit-periodic-dsbenchmark-cluster.yaml @@ -2,7 +2,7 @@ - project: name: mdsal-csit-periodic-dsbenchmark-cluster jobs: - - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + - inttest-csit-3node-periodic # The project name project: 'controller' diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index 892e40ab9b..0c412626ac 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -788,7 +788,8 @@ - lf-infra-publish - job-template: - name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + name: '{prefix}{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + id: inttest-csit-3node-periodic disabled: false project-type: freestyle diff --git a/jjb/netconf/netconf-clustering-scale.yaml b/jjb/netconf/netconf-clustering-scale.yaml index de4492d771..1b0645bbb9 100644 --- a/jjb/netconf/netconf-clustering-scale.yaml +++ b/jjb/netconf/netconf-clustering-scale.yaml @@ -2,7 +2,7 @@ - project: name: netconf-csit-clustering-scale jobs: - - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + - inttest-csit-3node-periodic # The project name project: 'netconf' diff --git a/jjb/sxp/sxp-csit-cluster-routing.yaml b/jjb/sxp/sxp-csit-cluster-routing.yaml index 9449009088..9474a4097e 100644 --- a/jjb/sxp/sxp-csit-cluster-routing.yaml +++ b/jjb/sxp/sxp-csit-cluster-routing.yaml @@ -2,7 +2,7 @@ - project: name: sxp-csit-routing jobs: - - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + - inttest-csit-3node-periodic # The project name project: 'sxp' diff --git a/jjb/sxp/sxp-csit-clustering.yaml b/jjb/sxp/sxp-csit-clustering.yaml index 9357903a14..0b5e3adac4 100644 --- a/jjb/sxp/sxp-csit-clustering.yaml +++ b/jjb/sxp/sxp-csit-clustering.yaml @@ -2,7 +2,7 @@ - project: name: sxp-csit-clustering jobs: - - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' + - inttest-csit-3node-periodic # The project name project: 'sxp'