Skip to content

Commit

Permalink
Merge pull request #1245 from IgniteUI/btraykov-add-post-build-cleanup
Browse files Browse the repository at this point in the history
Add optional - turned on by default - post-build cleanup
  • Loading branch information
HUSSAR-mtrela authored Jun 5, 2024
2 parents f3cdc38 + eff180c commit 1bd48e1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
7 changes: 6 additions & 1 deletion azure-pipelines/build-pipeline-jp+kr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ parameters:
displayName: 'Get verbose output from steps - where configurable'
type: boolean
default: false
- name: shouldCleanPostExectuion
displayName: 'Clean all pipeline dirs after the pipeline finishes?'
type: boolean
default: true

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand Down Expand Up @@ -134,4 +138,5 @@ stages:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifact: 'XPlatDocFX'


- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
- task: PostBuildCleanup@4
6 changes: 6 additions & 0 deletions azure-pipelines/build-pipeline-make-pr-jp+kr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ parameters:
displayName: 'Get verbose output from steps - where configurable'
type: boolean
default: false
- name: shouldCleanPostExectuion
displayName: 'Clean all pipeline dirs after the pipeline finishes?'
type: boolean
default: true

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand Down Expand Up @@ -95,3 +99,5 @@ stages:

# Angular doesn't produce an artifact that we can publish right now.

- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
- task: PostBuildCleanup@4
6 changes: 6 additions & 0 deletions azure-pipelines/build-pipeline-make-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ parameters:
displayName: 'Get verbose output from steps - where configurable'
type: boolean
default: false
- name: shouldCleanPostExectuion
displayName: 'Clean all pipeline dirs after the pipeline finishes?'
type: boolean
default: true

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand Down Expand Up @@ -93,3 +97,5 @@ stages:

# Angular doesn't produce an artifact that we can publish right now.

- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
- task: PostBuildCleanup@4
7 changes: 7 additions & 0 deletions azure-pipelines/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ parameters:
displayName: 'Get verbose output from steps - where configurable'
type: boolean
default: false
- name: shouldCleanPostExectuion
displayName: 'Clean all pipeline dirs after the pipeline finishes?'
type: boolean
default: true

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

Expand Down Expand Up @@ -102,3 +106,6 @@ stages:
language: en
isVerbose: ${{ parameters.isVerbose }}
workingDir: '$(Build.SourcesDirectory)'

- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
- task: PostBuildCleanup@4

0 comments on commit 1bd48e1

Please sign in to comment.