dependency-check / azuredevops

Dependency Check Azure DevOps Extension
Apache License 2.0
45 stars 25 forks source link

Dependency Check Download Failure #34

Closed ejohn20 closed 4 years ago

ejohn20 commented 4 years ago

Downloading Dependency Check installer appears to be failing on local Azure DevOps agents. Adding the -Force parameter may fix this.

##[error]System.IO.IOException: Failed to create file 'E:\MyPool\AGENT2\_work\_tasks\dependency-check-build-task_47ea1f4a-57ba-414a-b12e-c44f42765e72\5.3.2001\dependency-check\bin\dependency-check.sh' while expanding the archive file 'E:\MyPool\AGENT2\_work\_tasks\dependency-check-build-task_47ea1f4a-57ba-414a-b12e-c44f42765e72\5.3.2001\dependency-check-5.3.2-release.zip' contents as the file 'E:\MyPool\AGENT2\_work\_tasks\dependency-check-build-task_47ea1f4a-57ba-414a-b12e-c44f42765e72\5.3.2001\dependency-check\bin\dependency-check.sh' already exists. Use the -Force parameter if you want to overwrite the existing directory 'E:\MyPool\AGENT2\_work\_tasks\dependency-check-build-task_47ea1f4a-57ba-414a-b12e-c44f42765e72\5.3.2001\dependency-check\bin\dependency-check.sh' contents when expanding the archive file.
Ending Dependency Check..."
ejohn20 commented 4 years ago

Adding the -Force parameter to this line:

src/Tasks/dependency-check-build-task/dependency-check-build-task.ps1

Expand-Archive -Path dependency-check-5.3.2-release.zip -DestinationPath . -Force
ejohn20 commented 4 years ago

@cybernot / @gctse - v5.3.2.2 build task was deployed. Can you confirm this fixes the issue?

cybernot commented 4 years ago

We ( gctse and I) are running a build now to verify, we'll tell you as soon as it's done

n1h1lu5 commented 4 years ago

I confirm that this fixes the issue. Thanks for the quick fix!