This trigger macro was essentially redefining everything the trigger
directly supports. We might as well just call the trigger directly.
Change-Id: I1fc77b501678f213767a70c99119a56a418910fc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
--- /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
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
=========================================
Preserving Objects in Variable References
=========================================
- - 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
====================================
Using single quotes around variables
====================================
**GitHub required parameters**:
:git-url: Set this to the base URL of your GitHub repo. In
**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.
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
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
: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.
:github_pr_admin_list: List of GitHub members that will have admin
: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.
as the value. This will require that the job be triggered via
the GHPRB plugin and not manually.
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.
-
recursive: '{submodule-recursive}'
choosing-strategy: '{choosing-strategy}'
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 #
############
############
# WRAPPERS #
############