From: Thanh Ha Date: Wed, 24 Jan 2018 19:22:29 +0000 (-0500) Subject: Switch the csit-verify-3node to use job prefix X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=fdf86684ef886d8e2dcecdfd421505ac57e1b283;p=releng%2Fbuilder.git Switch the csit-verify-3node 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-verify-3node 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: I9257729a920e23c00434493796fe6fd14ff6bd8f Signed-off-by: Thanh Ha --- diff --git a/jjb/controller/controller-csit-clustering.yaml b/jjb/controller/controller-csit-clustering.yaml index 612250df5..142bb1842 100644 --- a/jjb/controller/controller-csit-clustering.yaml +++ b/jjb/controller/controller-csit-clustering.yaml @@ -3,7 +3,7 @@ name: controller-csit-clustering jobs: - '{project}-csit-3node-{functionality}-{install}-{stream}' - - '{project}-csit-verify-3node-{functionality}' + - inttest-csit-verify-3node # The project name project: 'controller' diff --git a/jjb/genius/genius-csit-genius.yaml b/jjb/genius/genius-csit-genius.yaml index 30d368368..8f6ba1676 100644 --- a/jjb/genius/genius-csit-genius.yaml +++ b/jjb/genius/genius-csit-genius.yaml @@ -5,7 +5,7 @@ - '{project}-csit-3node-{functionality}-{install}-{stream}' - '{project}-csit-1node-{functionality}-{install}-{stream}' - inttest-csit-verify-1node - - '{project}-csit-verify-3node-{functionality}' + - inttest-csit-verify-3node # The project name diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index f96a41b93..f9284469e 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -466,7 +466,8 @@ - lf-infra-publish - job-template: - name: '{project}-csit-verify-3node-{functionality}' + name: '{prefix}{project}-csit-verify-3node-{functionality}' + id: inttest-csit-verify-3node disabled: false project-type: freestyle diff --git a/jjb/ovsdb/ovsdb-csit-clustering.yaml b/jjb/ovsdb/ovsdb-csit-clustering.yaml index 2fc767152..f98831356 100644 --- a/jjb/ovsdb/ovsdb-csit-clustering.yaml +++ b/jjb/ovsdb/ovsdb-csit-clustering.yaml @@ -3,7 +3,7 @@ name: ovsdb-csit-clustering jobs: - '{project}-csit-3node-{functionality}-{install}-{stream}' - - '{project}-csit-verify-3node-{functionality}' + - inttest-csit-verify-3node # The project name project: 'ovsdb' diff --git a/jjb/vtn/vtn-csit-3node-manager.yaml b/jjb/vtn/vtn-csit-3node-manager.yaml index 637243f86..56ab4ddeb 100644 --- a/jjb/vtn/vtn-csit-3node-manager.yaml +++ b/jjb/vtn/vtn-csit-3node-manager.yaml @@ -3,7 +3,7 @@ name: vtn-csit-3node-manager jobs: - '{project}-csit-3node-{functionality}-{install}-{stream}' - - '{project}-csit-verify-3node-{functionality}' + - inttest-csit-verify-3node # The project name project: 'vtn'