PowerShellBuild icon indicating copy to clipboard operation
PowerShellBuild copied to clipboard

CleanUp should delete all old build versions

Open FLeven opened this issue 3 years ago • 0 comments

I noticed that if a new version is build, the Cleanup task will not delete old build versions in 'Output\modulename'

This forces me to add an additional cleanup task or to specify the explicit version to my additional push step I have to use at the moment.

Expected Behavior

Cleanup task, should cleanup everything in the Output folder

Current Behavior

Old module versions remain in the Output folder after the CleanUp task has run

Possible workaround

  • Cleanup workspace after pipeline has run
  • Add a custom CleanUp step to the pipeline

Steps to Reproduce (for bugs)

  1. Change module version in manifest
  2. Add Version to ChangeLog.md
  3. build
  4. ls Output folder

Context

I try to Build and Push a PowerShell module with minimal additions and changes to the vanilla build pipeline created by Stucco.

Your Environment

Powershell 5.1 Jenkins-agent on ServerCore Container (Build 1809)

FLeven avatar Feb 19 '22 10:02 FLeven