Some projects may have small Python sub-projects within their
repos. This would allow them to only trigger builds when there
is a change in the relevant directory.
Change-Id: If54f43eb3f66d0c6b493495a82a65989fc7ed6c3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
:submodule-recursive: Whether to checkout submodules recursively.
(default: true)
:gerrit_clm_triggers: Override Gerrit Triggers.
:submodule-recursive: Whether to checkout submodules recursively.
(default: true)
:gerrit_clm_triggers: Override Gerrit Triggers.
+ :gerrit_trigger_file_paths: Override file paths which used to filter which
+ file modifications will trigger a build. Refer to JJB documentation for
+ "file-path" details.
+ https://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.gerrit
+
Python Sonar with Tox
---------------------
Python Sonar with Tox
---------------------
:submodule-recursive: Whether to checkout submodules recursively.
(default: true)
:gerrit_sonar_triggers: Override Gerrit Triggers.
:submodule-recursive: Whether to checkout submodules recursively.
(default: true)
:gerrit_sonar_triggers: Override Gerrit Triggers.
+ :gerrit_trigger_file_paths: Override file paths which used to filter which
+ file modifications will trigger a build. Refer to JJB documentation for
+ "file-path" details.
+ https://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.gerrit
+
(default: '')
:tox-envs: Tox environments to run. If blank run everything described
in tox.ini. (default: '')
(default: '')
:tox-envs: Tox environments to run. If blank run everything described
in tox.ini. (default: '')
+ :gerrit_trigger_file_paths: Override file paths which used to filter which
+ file modifications will trigger a build. Refer to JJB documentation for
+ "file-path" details.
+ https://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.gerrit
gerrit_clm_triggers:
- comment-added-contains-event:
comment-contains-value: run-clm$
gerrit_clm_triggers:
- comment-added-contains-event:
comment-contains-value: run-clm$
+ gerrit_trigger_file_paths:
+ - compare-type: ANT
+ pattern: '**'
#####################
# Job Configuration #
#####################
# Job Configuration #
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
skip-vote:
successful: true
failed: true
skip-vote:
successful: true
failed: true
gerrit_sonar_triggers:
- comment-added-contains-event:
comment-contains-value: run-sonar$
gerrit_sonar_triggers:
- comment-added-contains-event:
comment-contains-value: run-sonar$
+ gerrit_trigger_file_paths:
+ - compare-type: ANT
+ pattern: '**'
#####################
# Job Configuration #
#####################
# Job Configuration #
branches:
- branch-compare-type: 'ANT'
branch-pattern: '**/master'
branches:
- branch-compare-type: 'ANT'
branch-pattern: '**/master'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
skip-vote:
successful: true
failed: true
skip-vote:
successful: true
failed: true
- draft-published-event
- comment-added-contains-event:
comment-contains-value: recheck$
- draft-published-event
- comment-added-contains-event:
comment-contains-value: recheck$
+ gerrit_trigger_file_paths:
+ - compare-type: ANT
+ pattern: '**'
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
- job-template:
# Python projects typically use tox to run testing.
- job-template:
# Python projects typically use tox to run testing.