mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
c8025329e2
commit
9d272aea7f
1 changed files with 4 additions and 14 deletions
|
|
@ -60,7 +60,6 @@ stages:
|
|||
BUILD_ARTIFACTSTAGINGDIRECTORY: $(Build.ArtifactStagingDirectory)
|
||||
BUILD_BINARIESDIRECTORY: $(Build.BinariesDirectory)
|
||||
BUILD_SOURCESDIRECTORY: $(Build.SourcesDirectory)
|
||||
BUILD_PUBLISHDIRECTORY: "$(Build.BuildDirectory)/$(PublishFolder)"
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
|
|
@ -75,14 +74,8 @@ stages:
|
|||
if (Test-Path $env:BUILD_SOURCESDIRECTORY) {
|
||||
Remove-Item -Path "$env:BUILD_SOURCESDIRECTORY\*" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
if (Test-Path $env:BUILD_PUBLISHDIRECTORY) {
|
||||
Remove-Item -Path "$env:BUILD_PUBLISHDIRECTORY" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
pwsh: true
|
||||
|
||||
- checkout: GitHubRepo
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Output Environment Variables
|
||||
#condition: contains(variables['system.debug'], 'true')
|
||||
|
|
@ -91,6 +84,8 @@ stages:
|
|||
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
|
||||
pwsh: true
|
||||
|
||||
- checkout: GitHubRepo
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Post Clean-up Agent Folders
|
||||
condition: always()
|
||||
|
|
@ -142,7 +137,6 @@ stages:
|
|||
BUILD_ARTIFACTSTAGINGDIRECTORY: $(Build.ArtifactStagingDirectory)
|
||||
BUILD_BINARIESDIRECTORY: $(Build.BinariesDirectory)
|
||||
BUILD_SOURCESDIRECTORY: $(Build.SourcesDirectory)
|
||||
BUILD_PUBLISHDIRECTORY: "$(Build.BuildDirectory)/$(PublishFolder)"
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
|
|
@ -157,14 +151,8 @@ stages:
|
|||
if (Test-Path $env:BUILD_SOURCESDIRECTORY) {
|
||||
Remove-Item -Path "$env:BUILD_SOURCESDIRECTORY\*" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
if (Test-Path $env:BUILD_PUBLISHDIRECTORY) {
|
||||
Remove-Item -Path "$env:BUILD_PUBLISHDIRECTORY" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
pwsh: true
|
||||
|
||||
- checkout: GitHubRepo
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Output Environment Variables
|
||||
#condition: contains(variables['system.debug'], 'true')
|
||||
|
|
@ -173,6 +161,8 @@ stages:
|
|||
script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String'
|
||||
pwsh: true
|
||||
|
||||
- checkout: GitHubRepo
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Post Clean-up Agent Folders
|
||||
condition: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue