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 <thanh.ha@linuxfoundation.org>
- project:
name: bgpcep-csit-bgpclustering-ha
jobs:
- project:
name: bgpcep-csit-bgpclustering-ha
jobs:
- - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
+ - inttest-csit-3node-periodic
# The project name
project: 'bgpcep'
# The project name
project: 'bgpcep'
- project:
name: bgpcep-csit-bgpclustering
jobs:
- project:
name: bgpcep-csit-bgpclustering
jobs:
- - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
+ - inttest-csit-3node-periodic
# The project name
project: 'bgpcep'
# The project name
project: 'bgpcep'
- project:
name: mdsal-csit-periodic-dsbenchmark-cluster
jobs:
- project:
name: mdsal-csit-periodic-dsbenchmark-cluster
jobs:
- - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
+ - inttest-csit-3node-periodic
# The project name
project: 'controller'
# The project name
project: 'controller'
- lf-infra-publish
- job-template:
- 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
disabled: false
project-type: freestyle
- project:
name: netconf-csit-clustering-scale
jobs:
- project:
name: netconf-csit-clustering-scale
jobs:
- - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
+ - inttest-csit-3node-periodic
# The project name
project: 'netconf'
# The project name
project: 'netconf'
- project:
name: sxp-csit-routing
jobs:
- project:
name: sxp-csit-routing
jobs:
- - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
+ - inttest-csit-3node-periodic
# The project name
project: 'sxp'
# The project name
project: 'sxp'
- project:
name: sxp-csit-clustering
jobs:
- project:
name: sxp-csit-clustering
jobs:
- - '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
+ - inttest-csit-3node-periodic
# The project name
project: 'sxp'
# The project name
project: 'sxp'