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 <thanh.ha@linuxfoundation.org>
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'
- '{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
- 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
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'
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'