45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
parameters:
|
|
parentJobs: []
|
|
|
|
jobs:
|
|
- job: json
|
|
displayName: Create Json for Blob
|
|
dependsOn:
|
|
${{ parameters.parentJobs }}
|
|
condition: succeeded()
|
|
pool:
|
|
vmImage: windows-latest
|
|
|
|
steps:
|
|
#- task: <task type name>@<version>
|
|
# inputs:
|
|
# <task specific inputs>
|
|
# displayName: '<display name of task>'
|
|
- template: SetVersionVariables.yml
|
|
parameters:
|
|
ReleaseTagVar: $(ReleaseTagVar)
|
|
CreateJson: yes
|
|
|
|
- task: AzureFileCopy@3
|
|
displayName: 'upload daily-build-info JSON file to Azure - ${{ parameters.architecture }}'
|
|
inputs:
|
|
SourcePath: '$(BuildInfoPath)'
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
Destination: AzureBlob
|
|
storage: '$(StorageAccount)'
|
|
ContainerName: 'BuildInfo'
|
|
condition: and(succeeded(), eq(variables['IS_DAILY'], 'true'))
|
|
|
|
- task: AzureCLI@1
|
|
displayName: 'Make blob public'
|
|
inputs:
|
|
azureSubscription: '$(AzureFileCopySubscription)'
|
|
scriptLocation: inlineScript
|
|
inlineScript: 'az storage container set-permission --account-name $(StorageAccount) --name $(azureVersion) --public-access blob'
|
|
condition: and(succeeded(), eq(variables['IS_DAILY'], 'true'))
|
|
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
displayName: 'Component Detection'
|
|
inputs:
|
|
sourceScanPath: '$(Build.SourcesDirectory)'
|
|
snapshotForceEnabled: true
|