mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
clean source directory removed
This commit is contained in:
parent
5be7abe147
commit
c27c9d9a85
2 changed files with 9 additions and 7 deletions
|
|
@ -5,15 +5,14 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
- name: ProjectFile
|
- name: ProjectFile
|
||||||
type: string
|
type: string
|
||||||
- name: BuildPlatform
|
- name: PublishFolder
|
||||||
type: string
|
type: string
|
||||||
default: AnyCPU
|
|
||||||
- name: BuildConfiguration
|
- name: BuildConfiguration
|
||||||
type: string
|
type: string
|
||||||
default: Release
|
default: Release
|
||||||
- name: PublishFolder
|
- name: BuildPlatform
|
||||||
type: string
|
type: string
|
||||||
default: publish
|
default: AnyCPU
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: build
|
- stage: build
|
||||||
|
|
@ -43,9 +42,9 @@ stages:
|
||||||
Remove-Item -Path "$env:BUILD_BINARIESDIRECTORY\*" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
Remove-Item -Path "$env:BUILD_BINARIESDIRECTORY\*" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Test-Path $env:BUILD_SOURCESDIRECTORY) {
|
#if (Test-Path $env:BUILD_SOURCESDIRECTORY) {
|
||||||
Remove-Item -Path "$env:BUILD_SOURCESDIRECTORY\*" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
# Remove-Item -Path "$env:BUILD_SOURCESDIRECTORY\*" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
}
|
#}
|
||||||
|
|
||||||
if (Test-Path $env:BUILD_PUBLISHDIRECTORY) {
|
if (Test-Path $env:BUILD_PUBLISHDIRECTORY) {
|
||||||
Remove-Item -Path "$env:BUILD_PUBLISHDIRECTORY" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
Remove-Item -Path "$env:BUILD_PUBLISHDIRECTORY" -Filter '*.*' -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ variables:
|
||||||
value: 'src/Server-Managers.sln'
|
value: 'src/Server-Managers.sln'
|
||||||
- name: ProjectFile
|
- name: ProjectFile
|
||||||
value: 'src/$(ApplicationName)/$(ApplicationName).csproj'
|
value: 'src/$(ApplicationName)/$(ApplicationName).csproj'
|
||||||
|
- name: PublishFolder
|
||||||
|
value: publish
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- template: azure-pipelines-build.yml@self
|
- template: azure-pipelines-build.yml@self
|
||||||
|
|
@ -26,6 +28,7 @@ stages:
|
||||||
ApplicationName: $(ApplicationName)
|
ApplicationName: $(ApplicationName)
|
||||||
SolutionFile: $(SolutionFile)
|
SolutionFile: $(SolutionFile)
|
||||||
ProjectFile: $(ProjectFile)
|
ProjectFile: $(ProjectFile)
|
||||||
|
PublishFolder: $(PublishFolder)
|
||||||
|
|
||||||
- stage: deployBeta
|
- stage: deployBeta
|
||||||
displayName: Beta
|
displayName: Beta
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue