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-patch-test 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: I2abf886229e496868841f76888fe38deba208301
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
12 files changed:
- project:
name: aaa-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'aaa'
- project:
name: bgpcep-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'bgpcep'
- project:
name: genius-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'genius'
- project:
name: infrautils-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
project: 'infrautils'
# triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
- job-template:
- name: '{project}-patch-test-{feature}-{stream}'
+ name: '{prefix}{project}-patch-test-{feature}-{stream}'
+ id: inttest-patch-test
project-type: freestyle
node: centos7-builder-2c-8g
- project:
name: l2switch-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'l2switch'
- project:
name: netconf-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'netconf'
- project:
name: netvirt-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'netvirt'
- project:
name: openflowplugin-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'openflowplugin'
- project:
name: ovsdb-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'ovsdb'
- project:
name: sfc-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'sfc'
- project:
name: vtn-patch-test
jobs:
- - '{project}-patch-test-{feature}-{stream}'
+ - inttest-patch-test
# The project name
project: 'vtn'