Skip to content

Commit

Permalink
Fix template conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder committed Jan 24, 2022
1 parent 8658ee7 commit b30ec7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions eng/pipelines/templates/jobs/ci.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
arguments: '--project-list $(ProjectList)'
condition: and(succeeded(), eq(variables['ShouldRunSourceTests'],'true'))

- template: /eng/pipelines/templates/steps/install-java-17.yml
condition: and(succeeded(), contains(variables['Agent.OS'], 'linux'))
- ${{ if contains(variables['Agent.OS'], 'linux') }}:
- template: /eng/pipelines/templates/steps/install-java-17.yml

- task: Maven@3
displayName: 'Build for non-From Source run'
Expand Down
8 changes: 4 additions & 4 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ jobs:
pip install markdown2 BeautifulSoup4
displayName: 'pip install markdown2 and BeautifulSoup4'
- template: /eng/pipelines/templates/steps/install-java-17.yml
condition: and(succeeded(), contains(variables['Agent.OS'], 'linux'))
- ${{ if contains(variables['Agent.OS'], 'linux') }}:
- template: /eng/pipelines/templates/steps/install-java-17.yml

- task: Maven@3
displayName: 'Build and Package, JDK Version: $(JavaBuildVersion)'
Expand Down Expand Up @@ -308,8 +308,8 @@ jobs:
# reports. This means it is available as part of that, but also so that this is not documented in the project report.
- template: ../steps/install-reporting-tools.yml

- template: /eng/pipelines/templates/steps/install-java-17.yml
condition: and(succeeded(), contains(variables['Agent.OS'], 'linux'))
- ${{ if contains(variables['Agent.OS'], 'linux') }}:
- template: /eng/pipelines/templates/steps/install-java-17.yml

# maven dependency:tree needs to be able to resolve dependencies, so these should be installed.
- task: Maven@3
Expand Down

0 comments on commit b30ec7d

Please sign in to comment.