Skip to content

Commit

Permalink
Only run publish steps when build was successful
Browse files Browse the repository at this point in the history
Issue: #1810
  • Loading branch information
ethomson authored and sormuras committed Mar 16, 2019
1 parent 9049af2 commit 3e763d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
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'))))
condition: and(succeeded(), 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
Expand All @@ -111,4 +111,4 @@ jobs:
displayName: Publish
env:
GRGIT_USER: $(githubToken)
condition: and(eq(variables['System.PullRequest.IsFork'], False), and(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.SourceBranch'], 'refs/heads/master')))
condition: and(succeeded(), and(eq(variables['System.PullRequest.IsFork'], False), and(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))))

0 comments on commit 3e763d7

Please sign in to comment.