From 93c23629a5e331ebb6a892028848e6bd8737457f Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Wed, 24 Jan 2018 14:31:54 -0500 Subject: [PATCH] Switch the csit-3node-docker 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-docker 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: I18d977a1a1377ac20b528b65d08b7c22fa888db9 Signed-off-by: Thanh Ha --- jjb/integration/integration-templates.yaml | 3 ++- jjb/sfc/sfc-csit-full-deploy.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index f96a41b93..1ebaf2a2a 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -670,7 +670,8 @@ - lf-infra-publish - job-template: - name: '{project}-csit-3node-docker-{functionality}-{install}-{stream}' + name: '{prefix}{project}-csit-3node-docker-{functionality}-{install}-{stream}' + id: inttest-csit-3node-docker disabled: false project-type: freestyle diff --git a/jjb/sfc/sfc-csit-full-deploy.yaml b/jjb/sfc/sfc-csit-full-deploy.yaml index d9841368e..bfbc9066d 100644 --- a/jjb/sfc/sfc-csit-full-deploy.yaml +++ b/jjb/sfc/sfc-csit-full-deploy.yaml @@ -2,7 +2,7 @@ - project: name: sfc-csit-full-deploy jobs: - - '{project}-csit-3node-docker-{functionality}-{install}-{stream}' + - inttest-csit-3node-docker # The project name project: 'sfc' -- 2.36.6