Skip to content

Commit

Permalink
GEODE-9717: enable self-service jdk8 pr checks via jdk8 pr label (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
onichols-pivotal authored Oct 12, 2021
1 parent 09d840d commit 198cc40
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions ci/pipelines/pull-request/jinja.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ groups:
jobs:
- {{ build_test.name }}
{%- for test in tests %}
{%- for java_test_version in (java_test_versions) if not java_test_version.name.endswith("jdk8") or test.name == "unit" or test.name == "stress-new" or test.name == "distributed" %}
{%- for java_test_version in (java_test_versions) if (java_test_version.name.endswith("jdk11") or (java_test_version.name.endswith("jdk8") and test.PLATFORM == "linux")) and ((not test.ONLY_JDK is defined) or test.ONLY_JDK == java_test_version.version) %}
- {{test.name}}-test-{{java_test_version.name}}
{%- endfor %}
{%- endfor %}
Expand All @@ -43,6 +43,14 @@ resources:
disable_ci_skip: false
skip_ssl_verification: false
labels: [windows]
- name: geode-jdk8
type: pull-request
source:
access_token: ((github-apachegeode-ci-read-only-token))
repository: {{repository.fork}}/geode
disable_ci_skip: false
skip_ssl_verification: false
labels: [jdk8]
- name: geode-status
type: pull-request
source:
Expand Down Expand Up @@ -275,15 +283,18 @@ jobs:


{% for test in tests %}
{%- for java_test_version in (java_test_versions) if not java_test_version.name.endswith("jdk8") or test.name == "unit" or test.name == "stress-new" or test.name == "distributed" %}
{%- for java_test_version in (java_test_versions) if (java_test_version.name.endswith("jdk11") or (java_test_version.name.endswith("jdk8") and test.PLATFORM == "linux")) and ((not test.ONLY_JDK is defined) or test.ONLY_JDK == java_test_version.version) %}
- name: {{test.name}}-test-{{java_test_version.name}}
public: true
plan:
- do:
- in_parallel:
- get: alpine-tools-image
{%- if test.PLATFORM=="linux" %}
{%- if test.PLATFORM == "linux" and (java_test_version.name.endswith("jdk11") or test.name == "stress-new" or test.name == "distributed") %}
- get: geode
{%- elif test.PLATFORM == "linux" %}
- get: geode
resource: geode-jdk8
{%- else %}
- get: geode
resource: geode-windows
Expand Down
2 changes: 1 addition & 1 deletion ci/pipelines/shared/jinja.variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ tests:
EXECUTE_TEST_TIMEOUT: 1h
GRADLE_TASK: geode-assembly:japicmp
MAX_IN_FLIGHT: 1
ONLY_JDK: 8
ONLY_JDK: 11
PARALLEL_DUNIT: 'false'
PARALLEL_GRADLE: 'false'
PLATFORM: linux
Expand Down

0 comments on commit 198cc40

Please sign in to comment.