Skip to content

Commit

Permalink
Fine-tune Azure Pipeline build
Browse files Browse the repository at this point in the history
- "Linux (OpenJDK 11)" published its test results
- "Publish Snapshot Artifacts" is longer allowed to fail
- "Publish Snapshot Artifacts" depends on "Linux (OpenJDK 11)"
- "Update Snapshot Documentation" depends on "Linux (OpenJDK 11)"

Addresses #1810
  • Loading branch information
sormuras authored and marcphilipp committed Mar 16, 2019
1 parent b2205e7 commit c211353
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
- checkout: self
fetchDepth: 1
- template: src/azure/azure-gradle-step.yml
parameters:
publishTestResults: true

- job: linux_12
displayName: Linux (OpenJDK 12)
Expand All @@ -22,8 +24,6 @@ jobs:
- checkout: self
fetchDepth: 1
- template: src/azure/azure-gradle-step.yml
parameters:
publishTestResults: true

- job: linux_13
displayName: Linux (OpenJDK 13)
Expand Down Expand Up @@ -76,6 +76,7 @@ jobs:
reportDirectory: '**/build/reports/jacoco/jacocoRootReport/html'

- job: publish_artifacts
dependsOn: linux_11
displayName: Publish Snapshot Artifacts
pool:
vmImage: 'ubuntu-16.04'
Expand All @@ -87,13 +88,13 @@ jobs:
export JAVA_HOME="${JAVA_HOME_11_X64}"
./gradlew --scan publish -x check
displayName: Publish
continueOnError: true
env:
ORG_GRADLE_PROJECT_nexusUsername: $(nexusUsername)
ORG_GRADLE_PROJECT_nexusPassword: $(nexusPassword)
condition: and(eq(variables['System.PullRequest.IsFork'], False), and(eq(variables['Build.Reason'], 'IndividualCI'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))))

- job: update_documentation
dependsOn: linux_11
displayName: Update Snapshot Documentation
pool:
vmImage: 'ubuntu-16.04'
Expand Down

0 comments on commit c211353

Please sign in to comment.