Skip to content

Commit

Permalink
Fix Azure File Copy break in AzDevOps (#13173)
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisEz13 committed Jul 14, 2020
1 parent f90712a commit 9d05561
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 24 deletions.
16 changes: 8 additions & 8 deletions tools/releaseBuild/azureDevOps/WindowsBuild.yml
Expand Up @@ -247,7 +247,7 @@ jobs:
dependsOn: BuildJob
condition: succeeded()
pool:
name: Package ES CodeHub Lab E
name: Package ES Standard Build
strategy:
matrix:
release-anycpu:
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:
continueOnError: true
condition: and(succeeded(), eq(variables['Build.Reason'], 'Manual'))
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed msi to Azure - x64'
inputs:
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-$(Version)-win-x64.msi'
Expand All @@ -352,7 +352,7 @@ jobs:
displayName: '[create script] upload signed msi - x86'
continueOnError: true
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed msi to Azure - x86'
inputs:
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-$(Version)-win-x86.msi'
Expand All @@ -372,7 +372,7 @@ jobs:
displayName: '[Create script] upload signed zip - x64'
continueOnError: true
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed zip to Azure - x64'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-x64.zip'
Expand All @@ -392,7 +392,7 @@ jobs:
displayName: '[create script] upload signed zip - x86'
continueOnError: true
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed zip to Azure - x86'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-x86.zip'
Expand All @@ -412,7 +412,7 @@ jobs:
displayName: '[create script] upload signed zip - arm'
continueOnError: true
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed zip to Azure - arm'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-arm32.zip'
Expand All @@ -432,7 +432,7 @@ jobs:
displayName: '[create script] upload signed zip - arm64'
continueOnError: true
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed zip to Azure - arm64'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-arm64.zip'
Expand All @@ -452,7 +452,7 @@ jobs:
displayName: '[create script] upload signed zip - fxdependent'
continueOnError: true
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed zip to Azure - fxdependent'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-fxdependent.zip'
Expand Down
2 changes: 1 addition & 1 deletion tools/releaseBuild/azureDevOps/templates/compliance.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
dependsOn:
${{ parameters.parentJobs }}
pool:
name: Package ES CodeHub Lab E
name: Package ES Standard Build

# APIScan can take a long time
timeoutInMinutes: 180
Expand Down
2 changes: 1 addition & 1 deletion tools/releaseBuild/azureDevOps/templates/json.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
ReleaseTagVar: $(ReleaseTagVar)
CreateJson: yes

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload daily-build-info JSON file to Azure - ${{ parameters.architecture }}'
inputs:
SourcePath: '$(BuildInfoPath)'
Expand Down
8 changes: 4 additions & 4 deletions tools/releaseBuild/azureDevOps/templates/linux.yml
Expand Up @@ -49,7 +49,7 @@ jobs:
displayName: ${{ parameters.uploadDisplayName }} ${{ parameters.buildName }}
dependsOn: build_${{ parameters.buildName }}
condition: succeeded()
pool: Package ES CodeHub Lab E
pool: Package ES Standard Build
variables:
buildName: ${{ parameters.buildName }}
steps:
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
binVersionOverride: $(SigningVersionOverride)
condition: and(and(succeeded(), eq(variables['SHOULD_SIGN'], 'true')),eq(variables['buildName'], 'RPM'))

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'Upload to Azure - DEB and tar.gz'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\finished\release'
Expand All @@ -122,7 +122,7 @@ jobs:
parameters:
artifactPath: $(System.ArtifactsDirectory)\finished\release

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'Upload to Azure - RPM - Unsigned'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\rpm\release'
Expand All @@ -132,7 +132,7 @@ jobs:
ContainerName: '$(AzureVersion)'
condition: and(and(succeeded(), ne(variables['SHOULD_SIGN'], 'true')),eq(variables['buildName'], 'RPM'))

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'Upload to Azure - RPM - Signed'
inputs:
SourcePath: '$(Build.StagingDirectory)\signedPackages'
Expand Down
Expand Up @@ -4,7 +4,7 @@ jobs:
dependsOn: build_macOS
condition: succeeded()
pool:
name: Package ES CodeHub Lab E
name: Package ES Standard Build
variables:
BuildConfiguration: release
BuildPlatform: any cpu
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
displayName: 'Create unsigned folder to upload'
condition: and(succeeded(), ne(variables['SHOULD_SIGN'], 'true'))
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'AzureBlob File Copy - unsigned'
inputs:
SourcePath: '$(Build.StagingDirectory)\macos-unsigned'
Expand All @@ -107,7 +107,7 @@ jobs:
ContainerName: '$(AzureVersion)'
condition: and(succeeded(), ne(variables['SHOULD_SIGN'], 'true'))

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'AzureBlob File Copy - signed'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\azureMacOs'
Expand Down
4 changes: 2 additions & 2 deletions tools/releaseBuild/azureDevOps/templates/nuget.yml
Expand Up @@ -160,7 +160,7 @@ jobs:
Get-ChildItem "$(System.ArtifactsDirectory)\signed\globaltool" -Recurse
displayName: Move global tool packages to subfolder and capture
- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'Upload NuGet packages to Azure'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\signed\'
Expand All @@ -170,7 +170,7 @@ jobs:
ContainerName: '$(AzureVersion)-nuget'
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'true'))

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'Upload global tool packages to Azure'
inputs:
sourcePath: '$(System.ArtifactsDirectory)\signed\globaltool'
Expand Down
11 changes: 7 additions & 4 deletions tools/releaseBuild/azureDevOps/templates/upload.yml
Expand Up @@ -12,33 +12,35 @@ steps:
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msi
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed msi to Azure - ${{ parameters.architecture }}'
inputs:
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msi'
azureSubscription: '$(AzureFileCopySubscription)'
Destination: AzureBlob
storage: '$(StorageAccount)'
ContainerName: '$(AzureVersion)'
resourceGroup: '$(StorageResourceGroup)'
condition: and(succeeded(), eq('${{ parameters.msi }}', 'yes'))

- template: upload-final-results.yml
parameters:
artifactPath: $(System.ArtifactsDirectory)\signed
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.zip

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed zip to Azure - ${{ parameters.architecture }}'
inputs:
SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.zip'
azureSubscription: '$(AzureFileCopySubscription)'
Destination: AzureBlob
storage: '$(StorageAccount)'
ContainerName: '$(AzureVersion)'
resourceGroup: '$(StorageResourceGroup)'
condition: succeeded()

# Disable upload task as the symbols package is not currently used and we want to avoid publishing this in releases
#- task: AzureFileCopy@3
#- task: AzureFileCopy@4
# displayName: 'upload pbd zip to Azure - ${{ parameters.architecture }}'
# inputs:
# SourcePath: '$(System.ArtifactsDirectory)\signed\PowerShell-Symbols-${{ parameters.version }}-win-${{ parameters.architecture }}.zip'
Expand All @@ -54,12 +56,13 @@ steps:
artifactFilter: PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msix
condition: and(succeeded(), eq('${{ parameters.msix }}', 'yes'))

- task: AzureFileCopy@3
- task: AzureFileCopy@4
displayName: 'upload signed msix to Azure - ${{ parameters.architecture }}'
inputs:
SourcePath: '$(Build.StagingDirectory)\signedPackages\PowerShell-${{ parameters.version }}-win-${{ parameters.architecture }}.msix'
azureSubscription: '$(AzureFileCopySubscription)'
Destination: AzureBlob
storage: '$(StorageAccount)'
ContainerName: '$(AzureVersion)-private'
resourceGroup: '$(StorageResourceGroup)'
condition: and(succeeded(), eq('${{ parameters.msix }}', 'yes'), eq(variables['SHOULD_SIGN'], 'true'))
Expand Up @@ -8,7 +8,7 @@ jobs:
${{ parameters.parentJobs }}
condition: succeeded()
pool:
name: Package ES CodeHub Lab E
name: Package ES Standard Build
variables:
BuildConfiguration: release
BuildPlatform: any cpu
Expand Down

0 comments on commit 9d05561

Please sign in to comment.