From 4cd1a8f0db22d616db12aadf9424b0d1c624c69c Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 11 Oct 2018 17:02:34 -0400 Subject: Azure pipelines: no artifact upload/download from forks --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'azure-pipelines.yml') diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c5d8d5ba..16a79fb6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,6 +10,7 @@ jobs: pathtoPublish: '$(System.DefaultWorkingDirectory)/distfiles.zip' artifactName: distfiles displayName: 'Upload extra distribution files' + condition: eq(variables['System.PullRequest.IsFork'], 'False') - job: Windows pool: vmImage: vs2017-win2016 @@ -38,6 +39,7 @@ jobs: inputs: artifactName: distfiles downloadPath: $(System.DefaultWorkingDirectory) + condition: eq(variables['System.PullRequest.IsFork'], 'False') - script: azure-pipelines/build-windows.bat $(wordsize) $(tool) displayName: 'Build, test, generate binary distributions' - task: PublishBuildArtifacts@1 @@ -45,6 +47,7 @@ jobs: pathtoPublish: '$(System.DefaultWorkingDirectory)/installers' artifactName: installers displayName: 'Upload binary distributions' + condition: eq(variables['System.PullRequest.IsFork'], 'False') dependsOn: Linux condition: succeeded() - job: macOS @@ -56,6 +59,7 @@ jobs: inputs: artifactName: distfiles downloadPath: $(System.DefaultWorkingDirectory) + condition: eq(variables['System.PullRequest.IsFork'], 'False') - script: azure-pipelines/build-mac displayName: 'Mac build and test' dependsOn: Linux -- cgit v1.2.3-70-g09d2