From 3c0963014281896261c27780fda12c3def991a1d Mon Sep 17 00:00:00 2001 From: Donovan Brown Date: Wed, 26 Sep 2018 09:55:40 -0400 Subject: [PATCH] Adding conditions so PRs don't fail. (#103) --- .vsts-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 474517eb4..55a5d67b8 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -129,7 +129,7 @@ phases: inputs: summaryFileLocation: '**\coverage.xml' failIfCoverageEmpty: true - condition: succeededOrFailed() + condition: and(succeededOrFailed(), eq(variables['System.PullRequest.IsFork'], false)) - task: CopyFiles@2 displayName: 'Copy Module to Artifacts Folder' @@ -144,12 +144,14 @@ phases: types\** TargetFolder: '$(build.artifactstagingdirectory)/VSTeam' + condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], false)) - task: PublishBuildArtifacts@1 displayName: 'Publish Module' inputs: PathtoPublish: '$(build.artifactstagingdirectory)/VSTeam' ArtifactName: Module + condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], false)) - task: CopyFiles@2 displayName: 'Copy Integration Tests Artifacts Folder' @@ -159,9 +161,11 @@ phases: integration\** TargetFolder: '$(build.artifactstagingdirectory)/Tests' + condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], false)) - task: PublishBuildArtifacts@1 displayName: 'Publish Tests' inputs: PathtoPublish: '$(build.artifactstagingdirectory)/Tests' - ArtifactName: Test \ No newline at end of file + ArtifactName: Test + condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], false)) \ No newline at end of file