--- /dev/null
+- triggers:
+ - github-pull-request:
+ trigger-phrase: ^remerge$
+ only-trigger-phrase: true
+ status-context: JJB Merge
+ permit-all: false
+ github-hooks: true
+ org-list:
+ - '{github-org}'
+ white-list: '{obj:github_pr_whitelist}'
+ admin-list: '{obj:github_pr_admin_list}'
+ included_regions: '{obj:github_included_regions}'
2. Run the build scripts in this case lftools-install.sh and logs-deploy.sh
3. Remove credentials provided by config-file-provider
+.. _preserve-variable-refs:
+
Preserving Objects in Variable References
=========================================
.. code-block:: yaml
- - triggers:
- - lf-infra-github-pr-trigger:
- trigger-phrase: ^remerge$
- status-context: JJB Merge
- permit-all: false
- github-hooks: true
- github-org: '{github-org}'
- github_pr_whitelist: '{obj:github_pr_whitelist}'
- github_pr_admin_list: '{obj:github_pr_admin_list}'
-
-In the above example note the use of underscores in `github_pr_admin_list` and
-`github_pr_admin_list`.
+ .. literalinclude:: _static/github-pr-trigger.example
+
+In the above example note the use of underscores in ``github_pr_whitelist``,
+``github_pr_admin_list``, and ``github_included_regions``.
Using single quotes around variables
====================================
**GitHub required parameters**:
:git-url: Set this to the base URL of your GitHub repo. In
- general this should be <https://github.com>. If you are using
+ general this should be https://github.com. If you are using
GitHub Enterprise, or some other GitHub-style system, then it
should be whatever your installation base URL is.
into the scm config.
:github_pr_org: The name of the GitHub organization. All members
- of this organization will be able to trigger any job using the
- `lf-infra-github-pr` macro.
+ of this organization will be able to trigger jobs.
:github_pr_whitelist: List of GitHub members you wish to be able to
- trigger any job that uses the `lf-infra-github-pr-trigger` macro.
+ trigger jobs.
:github_pr_admin_list: List of GitHub members that will have admin
- privileges on any job using the `lf-infra-github-pr-trigger` macro.
+ privileges on the jobs.
Example Gerrit Infra:
as the value. This will require that the job be triggered via
the GHPRB plugin and not manually.
-Triggers
-========
-
-lf-infra-github-pr-trigger
---------------------------
-
-Provides configuration for a GitHub PR Trigger.
-
Wrappers
========
recursive: '{submodule-recursive}'
choosing-strategy: '{choosing-strategy}'
-############
-# TRIGGERS #
-############
-
-- trigger:
- name: lf-infra-github-pr-trigger
- triggers:
- - github-pull-request:
- trigger-phrase: '{trigger-phrase}'
- only-trigger-phrase: '{only-trigger-phrase}'
- status-context: '{status-context}'
- permit-all: '{permit-all}'
- github-hooks: '{github-hooks}'
- auto-close-on-fail: false
- org-list:
- - '{github-org}'
- white-list: '{obj:github_pr_whitelist}'
- admin-list: '{obj:github_pr_admin_list}'
-
############
# WRAPPERS #
############