Commit 67fa128d by Michael Youngstrom

Template out version possibilities for ghprb config file

parent 27485065
...@@ -123,7 +123,7 @@ build_jenkins_plugins_list: ...@@ -123,7 +123,7 @@ build_jenkins_plugins_list:
version: '0.15.2' version: '0.15.2'
group: 'org.jenkins-ci.plugins' group: 'org.jenkins-ci.plugins'
- name: 'ghprb' - name: 'ghprb'
version: '1.22.4' version: '1.30.1'
group: 'org.jenkins-ci.plugins' group: 'org.jenkins-ci.plugins'
- name: 'github' - name: 'github'
version: '1.14.0' version: '1.14.0'
...@@ -202,6 +202,7 @@ build_jenkins_plugins_list: ...@@ -202,6 +202,7 @@ build_jenkins_plugins_list:
group: 'org.jenkins-ci.plugins' group: 'org.jenkins-ci.plugins'
# ghprb # ghprb
build_jenkins_ghprb_white_list_phrase: '.*[Aa]dd\W+to\W+whitelist.*'
build_jenkins_ghprb_ok_phrase: '.*ok\W+to\W+test.*' build_jenkins_ghprb_ok_phrase: '.*ok\W+to\W+test.*'
build_jenkins_ghprb_retest_phrase: '.*jenkins\W+run\W+all.*' build_jenkins_ghprb_retest_phrase: '.*jenkins\W+run\W+all.*'
build_jenkins_ghprb_skip_phrase: '.*\[[Ss]kip\W+ci\].*' build_jenkins_ghprb_skip_phrase: '.*\[[Ss]kip\W+ci\].*'
......
...@@ -6,6 +6,7 @@ dependencies: ...@@ -6,6 +6,7 @@ dependencies:
jenkins_common_configuration_scripts: '{{ build_jenkins_configuration_scripts }}' jenkins_common_configuration_scripts: '{{ build_jenkins_configuration_scripts }}'
jenkins_common_template_files: '{{ build_jenkins_template_files }}' jenkins_common_template_files: '{{ build_jenkins_template_files }}'
jenkins_common_plugins_list: '{{ build_jenkins_plugins_list }}' jenkins_common_plugins_list: '{{ build_jenkins_plugins_list }}'
jenkins_common_ghprb_white_list_phrase: '{{ build_jenkins_ghprb_white_list_phrase }}'
jenkins_common_ghprb_ok_phrase: '{{ build_jenkins_ghprb_ok_phrase }}' jenkins_common_ghprb_ok_phrase: '{{ build_jenkins_ghprb_ok_phrase }}'
jenkins_common_ghprb_retest_phrase: '{{ build_jenkins_ghprb_retest_phrase }}' jenkins_common_ghprb_retest_phrase: '{{ build_jenkins_ghprb_retest_phrase }}'
jenkins_common_ghprb_skip_phrase: '{{ build_jenkins_ghprb_skip_phrase }}' jenkins_common_ghprb_skip_phrase: '{{ build_jenkins_ghprb_skip_phrase }}'
......
...@@ -97,12 +97,19 @@ jenkins_common_ghprb_results: ...@@ -97,12 +97,19 @@ jenkins_common_ghprb_results:
MESSAGE: 'Test FAILed.' MESSAGE: 'Test FAILed.'
- STATUS: 'SUCCESS' - STATUS: 'SUCCESS'
MESSAGE: 'Test PASSed.' MESSAGE: 'Test PASSed.'
JENKINS_GHPRB_TOKEN: ''
JENKINS_GHPRB_ADMIN_LIST: [] JENKINS_GHPRB_ADMIN_LIST: []
# For versions >= 1.34.0
JENKINS_GHPRB_BLACK_LIST: [] JENKINS_GHPRB_BLACK_LIST: []
JENKINS_GHPRB_WHITE_LIST: [] JENKINS_GHPRB_WHITE_LIST: []
# For versions < 1.23
JENKINS_GHPRB_TOKEN: ''
# For versions >= 1.23
JENKINS_GHPRB_CREDENTIAL_ID: ''
JENKINS_GHPRB_SHARED_SECRET: ''
# credentials # credentials
JENKINS_SECRET_FILES_LIST: [] JENKINS_SECRET_FILES_LIST: []
JENKINS_USERNAME_PASSWORD_LIST: [] JENKINS_USERNAME_PASSWORD_LIST: []
......
--- ---
SERVER_API_URL: '{{ jenkins_common_ghprb_server }}' SERVER_API_URL: '{{ jenkins_common_ghprb_server }}'
ACCESS_TOKEN: '{{ JENKINS_GHPRB_TOKEN }}'
ADMIN_LIST: ADMIN_LIST:
{% for admin in JENKINS_GHPRB_ADMIN_LIST %} {% for admin in JENKINS_GHPRB_ADMIN_LIST %}
- '{{ admin }}' - '{{ admin }}'
...@@ -17,14 +16,6 @@ MANAGE_WEBHOOKS: {{ jenkins_common_ghprb_manage_webhooks }} ...@@ -17,14 +16,6 @@ MANAGE_WEBHOOKS: {{ jenkins_common_ghprb_manage_webhooks }}
UNSTABLE_AS: '{{ jenkins_common_ghprb_failure_as }}' UNSTABLE_AS: '{{ jenkins_common_ghprb_failure_as }}'
AUTO_CLOSE_FAILED_PRS: {{ jenkins_common_ghprb_auto_close_fails }} AUTO_CLOSE_FAILED_PRS: {{ jenkins_common_ghprb_auto_close_fails }}
DISPLAY_ERRORS_DOWNSTREAM: {{ jenkins_commmon_ghprb_display_errors }} DISPLAY_ERRORS_DOWNSTREAM: {{ jenkins_commmon_ghprb_display_errors }}
BLACK_LIST_LABELS:
{% for blacklist in JENKINS_GHPRB_BLACK_LIST %}
- '{{ blacklist }}'
{% endfor %}
WHITE_LIST_LABELS:
{% for whitelist in JENKINS_GHPRB_WHITE_LIST %}
- '{{ whitelist }}'
{% endfor %}
GITHUB_AUTH: '{{ jenkins_common_ghprb_github_auth }}' GITHUB_AUTH: '{{ jenkins_common_ghprb_github_auth }}'
SIMPLE_STATUS: '{{ jenkins_common_ghprb_simple_status }}' SIMPLE_STATUS: '{{ jenkins_common_ghprb_simple_status }}'
PUBLISH_JENKINS_URL: '{{ jenkins_common_ghprb_publish_jenkins_url }}' PUBLISH_JENKINS_URL: '{{ jenkins_common_ghprb_publish_jenkins_url }}'
...@@ -34,3 +25,21 @@ RESULT_MESSAGES: ...@@ -34,3 +25,21 @@ RESULT_MESSAGES:
- STATUS: '{{ message.STATUS }}' - STATUS: '{{ message.STATUS }}'
MESSAGE: '{{ message.MESSAGE }}' MESSAGE: '{{ message.MESSAGE }}'
{% endfor %} {% endfor %}
# The following fields will only be used by certain versions.
# >= 1.34.0
BLACK_LIST_LABELS:
{% for blacklist in JENKINS_GHPRB_BLACK_LIST %}
- '{{ blacklist }}'
{% endfor %}
WHITE_LIST_LABELS:
{% for whitelist in JENKINS_GHPRB_WHITE_LIST %}
- '{{ whitelist }}'
{% endfor %}
# < 1.23
ACCESS_TOKEN: '{{ JENKINS_GHPRB_TOKEN }}'
# >= 1.23
CREDENTIALS_ID: '{{ JENKINS_GHPRB_CREDENTIAL_ID }}'
SHARED_SECRET: '{{ JENKINS_GHPRB_SHARED_SECRET }}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment