PowerShellBuild
PowerShellBuild copied to clipboard
CleanUp should delete all old build versions
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)
- Change module version in manifest
- Add Version to ChangeLog.md
- build
- 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)