mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-30 13:25:29 +08:00
Add checkout step to release build templates (#13840)
This commit is contained in:
parent
ebff40244a
commit
55c2858051
@ -32,7 +32,6 @@ jobs:
|
||||
|
||||
- checkout: self
|
||||
clean: true
|
||||
persistCredentials: true
|
||||
|
||||
- task: PkgESSetupBuild@10
|
||||
displayName: 'Initialize build'
|
||||
|
@ -14,11 +14,6 @@ variables:
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
POWERSHELL_TELEMETRY_OPTOUT: 1
|
||||
|
||||
# Set AzDevOps Agent to clean the machine after the end of the build
|
||||
resources:
|
||||
- repo: self
|
||||
clean: true
|
||||
|
||||
stages:
|
||||
- stage: prep
|
||||
jobs:
|
||||
|
@ -6,6 +6,8 @@ jobs:
|
||||
pool:
|
||||
vmImage: windows-latest
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
- template: SetVersionVariables.yml
|
||||
parameters:
|
||||
ReleaseTagVar: $(ReleaseTagVar)
|
||||
|
@ -15,6 +15,9 @@ jobs:
|
||||
timeoutInMinutes: 180
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: SetVersionVariables.yml
|
||||
parameters:
|
||||
ReleaseTagVar: $(ReleaseTagVar)
|
||||
|
@ -17,6 +17,9 @@ jobs:
|
||||
# inputs:
|
||||
# <task specific inputs>
|
||||
# displayName: '<display name of task>'
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: SetVersionVariables.yml
|
||||
parameters:
|
||||
ReleaseTagVar: $(ReleaseTagVar)
|
||||
|
@ -13,6 +13,8 @@ jobs:
|
||||
build: ${{ parameters.buildName }}
|
||||
runCodesignValidationInjection: false
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: SetVersionVariables.yml
|
||||
parameters:
|
||||
|
@ -13,6 +13,8 @@ jobs:
|
||||
BuildPlatform: any cpu
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: shouldSign.yml
|
||||
|
||||
|
@ -13,6 +13,9 @@ jobs:
|
||||
HOMEBREW_NO_ANALYTICS: 1
|
||||
runCodesignValidationInjection: false
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- pwsh: |
|
||||
# create folder
|
||||
sudo mkdir /PowerShell
|
||||
|
@ -13,6 +13,8 @@ jobs:
|
||||
BuildPlatform: any cpu
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: shouldSign.yml
|
||||
|
||||
|
@ -15,6 +15,8 @@ jobs:
|
||||
# inputs:
|
||||
# <task specific inputs>
|
||||
# displayName: '<display name of task>'
|
||||
- checkout: self
|
||||
clean: true
|
||||
- template: SetVersionVariables.yml
|
||||
parameters:
|
||||
ReleaseTagVar: $(ReleaseTagVar)
|
||||
|
@ -20,6 +20,8 @@ jobs:
|
||||
linuxFxdPath: '$(System.ArtifactsDirectory)/linuxFxd'
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- powershell: |
|
||||
$content = Get-Content "$(Build.SourcesDirectory)/global.json" -Raw | ConvertFrom-Json
|
||||
|
@ -12,6 +12,9 @@ jobs:
|
||||
pool:
|
||||
vmImage: ${{ parameters.imageName }}
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- download: releasePipeline
|
||||
artifact: finalResults
|
||||
patterns: '**/*.nupkg'
|
||||
|
@ -9,6 +9,9 @@ jobs:
|
||||
pool:
|
||||
vmImage: ${{ parameters.imageName }}
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- download: releasePipeline
|
||||
artifact: finalResults
|
||||
patterns: '**/*.nupkg'
|
||||
|
@ -6,6 +6,9 @@ jobs:
|
||||
variables:
|
||||
- group: 'Azure Blob variable group'
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- download: releasePipeline
|
||||
artifact: finalResults
|
||||
patterns: '**/PowerShell*-win-x64.zip'
|
||||
|
@ -6,6 +6,9 @@ jobs:
|
||||
condition: succeeded()
|
||||
pool: 'Hosted Ubuntu 1604'
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
|
||||
- pwsh: |
|
||||
Import-Module ./build.psm1
|
||||
|
@ -7,6 +7,8 @@ jobs:
|
||||
condition: succeeded()
|
||||
pool: Package ES Standard Build
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: ./SetVersionVariables.yml
|
||||
parameters:
|
||||
|
@ -18,7 +18,6 @@ jobs:
|
||||
|
||||
- checkout: self
|
||||
clean: true
|
||||
persistCredentials: true
|
||||
|
||||
- template: shouldSign.yml
|
||||
- template: SetVersionVariables.yml
|
||||
|
@ -10,6 +10,8 @@ jobs:
|
||||
name: Package ES Standard Build
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: SetVersionVariables.yml
|
||||
parameters:
|
||||
|
@ -21,7 +21,6 @@ jobs:
|
||||
|
||||
- checkout: self
|
||||
clean: true
|
||||
persistCredentials: true
|
||||
|
||||
- template: SetVersionVariables.yml
|
||||
parameters:
|
||||
|
@ -14,6 +14,8 @@ jobs:
|
||||
BuildPlatform: any cpu
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: shouldSign.yml
|
||||
- template: SetVersionVariables.yml
|
||||
|
@ -21,7 +21,6 @@ jobs:
|
||||
|
||||
- checkout: self
|
||||
clean: true
|
||||
persistCredentials: true
|
||||
|
||||
- template: shouldSign.yml
|
||||
- template: SetVersionVariables.yml
|
||||
|
@ -17,11 +17,6 @@ variables:
|
||||
value: 1
|
||||
- group: Azure Blob variable group
|
||||
|
||||
# Set AzDevOps Agent to clean the machine after the end of the build
|
||||
resources:
|
||||
- repo: self
|
||||
clean: true
|
||||
|
||||
jobs:
|
||||
- job: rename
|
||||
displayName: Name the build
|
||||
@ -29,6 +24,8 @@ jobs:
|
||||
pool:
|
||||
vmImage: 'windows-latest'
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- template: ./templates/SetVersionVariables.yml
|
||||
parameters:
|
||||
|
Loading…
Reference in New Issue
Block a user