456f2fb748
This allows us to add arbitrary string 'tags' to jobs. These may then be inspected inside of parameter functions for any purpose. In OpenStack, we will likely pass these through untouched to the the build so that they can be picked up by the logstash worker and we can record extra metadata about jobs. Change-Id: Ibc00c6d30cdfe4678864adb13421a4d9f71f5128
43 lines
824 B
YAML
43 lines
824 B
YAML
includes:
|
|
- python-file: tags_custom_functions.py
|
|
|
|
pipelines:
|
|
- name: check
|
|
manager: IndependentPipelineManager
|
|
trigger:
|
|
gerrit:
|
|
- event: patchset-created
|
|
success:
|
|
gerrit:
|
|
verified: 1
|
|
failure:
|
|
gerrit:
|
|
verified: -1
|
|
|
|
jobs:
|
|
- name: ^.*$
|
|
parameter-function: apply_tags
|
|
- name: ^.*-merge$
|
|
failure-message: Unable to merge change
|
|
hold-following-changes: true
|
|
tags: merge
|
|
- name: project1-merge
|
|
tags:
|
|
- project1
|
|
- extratag
|
|
|
|
projects:
|
|
- name: org/project1
|
|
check:
|
|
- project1-merge:
|
|
- project1-test1
|
|
- project1-test2
|
|
- project1-project2-integration
|
|
|
|
- name: org/project2
|
|
check:
|
|
- project2-merge:
|
|
- project2-test1
|
|
- project2-test2
|
|
- project1-project2-integration
|