redhat-developer / openshift-vsts

OpenShift Extension for Azure DevOps.
Apache License 2.0
15 stars 20 forks source link

Error on oc download: unknown archive format #201

Closed davidda closed 1 year ago

davidda commented 1 year ago

Hi, I get this error when specifying a custom download URL for the oc tool: image

If I log in to the agent the downloaded file can be manually extracted just fine.

I'm on Azure DevOps Server 2020 with an Ubuntu 20 agent version 2.204.

lstocchi commented 1 year ago

Hi @davidda , could you send me the custom download url? So i can replicate your exact steps. Thanks

davidda commented 1 year ago

@lstocchi Yes, I'd be happy to send it but I'm not sure we can share it publicly. Is there a way to send it to you in private?

lstocchi commented 1 year ago

Thanks @davidda , received :+1: . I'll give it a look in the afternoon and let you know asap

lstocchi commented 1 year ago

@davidda found the issue. Apparently there was no working code for .tar archives. A workaround could be to change the archive extension to .tar.gz and see if it works. I've created a PR to fix this and I hope to make a release in the next hours. Sorry for the trouble :pray:

davidda commented 1 year ago

Thank you so much for the swift support. I will wait for the release because we don't have control over the archive extension.

lstocchi commented 1 year ago

@davidda new version 2.0.0 released. It also contains an update on all tasks as we needed to upgrade everything to node10. So pay attention to the task version used (it's 3.0.1 now) when changing your pipeline. For anything broken, please open an issue. Thank you for your help!! :pray: