br-automation-com / BnR-DevOps-Package

Contains materials for implementing DevOps practices for Automation Studio project development.
22 stars 1 forks source link

Update JenkinsfileTemplate to rename pip.zip without error #5

Closed Dualton closed 1 year ago

Dualton commented 1 year ago

Move-Item -Force instead of Rename-Item allows for rename even if destination file already exists. this is needed because no complete workspace cleanup is performed in this jenkinsfile

wesleybuchanan commented 1 year ago

Good idea, we haven't seen that issue before because we have our jenkins project perform a clean before checkout but I see no reason not use the Move-Item instead for added robustness.
image

Dualton commented 1 year ago

Ah, i was wondering. Clean before checkout is not mentioned in the powerpoint so I thought it was left out for a reason. Of course clean before checkout is more clean anyways.