Getting not found exception in Artifacts api
I am getting 404 error when used by put request.
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
Support Staff 1 Posted by Feodor Fitsner on 26 Nov, 2014 06:06 PM
There is no such API endpoint. Artifact can be uploaded from build worker only.
To upload artifact from build worker you should:
1) Add artifact and obtain temporary upload URL.
where
%APPVEYOR_API_URL%
is URL of build worker API stored in environment variable, so you can grab it withEnvironment.GetEnvironmentVariable("APPVEYOR_API_URL")
body:
You'll take JSON string in the response which is upload URL.
Use
WebClient
class to upload artifact to that URL:2 Posted by Rifat Erdem Sah... on 27 Nov, 2014 08:58 AM
I am having a hard time understanding the example. could you provide a detailed example please ?
Thank you
Keep up the great work
Rifat Erdem Sahin closed this discussion on 26 Dec, 2014 01:35 PM.