psake / PowerShellBuild

Common build tasks for psake and Invoke-Build that build and test PowerShell modules
MIT License
133 stars 24 forks source link

CleanUp should delete all old build versions #58

Closed FLeven closed 1 year ago

FLeven commented 2 years ago

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

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)