# limitations under the License.
#
- job-template:
- id: kni-installer-build-installer
- name: '{project-name}-build-installer'
+ id: kni-installer-verify-installer
+ name: '{project-name}-verify-installer'
######################
# Default parameters #
build-timeout: '{build-timeout}'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
- gerrit_merge_triggers:
- - change-merged-event
- - comment-added-contains-event:
- comment-contains-value: remerge$
-
gerrit_trigger_file_paths:
- compare-type: ANT
pattern: '**'
submodule-timeout: '{submodule-timeout}'
choosing-strategy: default
+ gerrit_verify_triggers:
+ - patchset-created-event:
+ exclude-drafts: true
+ exclude-trivial-rebase: false
+ exclude-no-code-change: false
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+
triggers:
- gerrit:
server-name: '{gerrit-server-name}'
- trigger-on: '{obj:gerrit_merge_triggers}'
+ trigger-on: '{obj:gerrit_verify_triggers}'
projects:
- project-compare-type: ANT
project-pattern: '{project}'
- lf-infra-publish
- job-template:
- id: kni-installer-build-binary
- name: '{project-name}-build-binary'
+ id: kni-installer-verify-binary
+ name: '{project-name}-verify-binary'
######################
# Default parameters #
build-timeout: '{build-timeout}'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
- gerrit_merge_triggers:
- - change-merged-event
- - comment-added-contains-event:
- comment-contains-value: remerge$
-
gerrit_trigger_file_paths:
- compare-type: REG_EXP
pattern: 'Makefile'
- compare-type: REG_EXP
pattern: 'cmd/binary.go'
+ gerrit_verify_triggers:
+ - patchset-created-event:
+ execlude-drafts: true
+ exclude-trivial-rebase: false
+ exclude-no-code-change: false
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+
scm:
- lf-infra-gerrit-scm:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
- gerrit:
server-name: '{gerrit-server-name}'
- trigger-on:
- - patchset-created-event:
- exclude-drafts: 'false'
- exclude-trivial-rebase: 'false'
- exclude-no-code-change: 'false'
- - change-merged-event
- - comment-added-contains-event:
- comment-contains-value: 'recheck'
- - comment-added-contains-event:
- comment-contains-value: 'reverify'
+ trigger-on: '{obj:gerrit_verify_triggers}'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
builders:
- lf-infra-pre-build
- shell: !include-raw-escape:
- ../shell/build_kni_binary.sh
+ publishers:
+ - lf-infra-publish
+
- job-template:
id: kni-installer-merge-deploy-aws
name: '{project-name}-merge-deploy-aws'