404 error when downloading artifact from build file

pcercuei's Avatar

pcercuei

30 Jun, 2017 04:00 PM

I'm trying to download this artifact:
https://ci.appveyor.com/api/projects/analogdevicesinc/scopy-mingw-build-deps/artifacts/scopy-mingw64-build-deps.tar.xz?branch=master&job=Environment%3A%20MINGW_VERSION%3Dmingw64%2C%20ARCH%3Dx86_64

It downloads fine from my PC, but from a appveyor script I get a 404 error.
How to download an artifact from a appveyor.yml script?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 30 Jun, 2017 05:47 PM

    Ilya Finkelshteyn's Avatar

    Please try this script, should work. If you need to use your own script, please send it here for us to understand why it does not work.

  2. 2 Posted by pcercuei on 03 Jul, 2017 09:44 AM

    pcercuei's Avatar

    This is my script:
    https://github.com/analogdevicesinc/scopy/blob/6bcde093/appveyor.yml

    I just use curl/wget to download the file, which is public from the outside world (everybody can download it from its URL).

    But AppVeyor can't: https://ci.appveyor.com/project/analogdevicesinc/scopy/build/1.0.682

  3. Support Staff 3 Posted by Ilya Finkelshte... on 03 Jul, 2017 07:51 PM

    Ilya Finkelshteyn's Avatar

    I see. There is a problem how URL encoded string works in AppVeyor command line. I was not able to find quick solution to make it work with curl, but our own tool deals with URL encoding well, so workaround is:

    appveyor downloadfile "https://ci.appveyor.com/api/projects/analogdevicesinc/scopy-mingw-build-deps/artifacts/scopy-mingw32-build-deps.tar.xz?branch=master&job=Environment: MINGW_VERSION=mingw32, ARCH=i686"
    
    Ilya.
  4. 4 Posted by pcercuei on 04 Jul, 2017 02:29 PM

    pcercuei's Avatar

    Thanks.

    So I tried it:
    https://github.com/analogdevicesinc/scopy/commit/ef521dd2ff6bce26f7ead15bfde10031aa57821d

    But this does not work:
    https://ci.appveyor.com/project/analogdevicesinc/scopy/build/1.0.709
    It's strange, it behaves like if the line is ignored completely. It does not appear in the log...

  5. Support Staff 5 Posted by Ilya Finkelshte... on 04 Jul, 2017 11:38 PM

    Ilya Finkelshteyn's Avatar

    Apparently you also need to wrap the whole command into single quotes. I sent PR with fix.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:18 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac