Link in notification email to download the artifact.

amit.m.srivastava's Avatar

amit.m.srivastava

23 Mar, 2020 02:07 PM

In the build notification email (Project Settings | Notification) , I would like to send the link to download the Artifact, so that users can consume the artifact. How can I achieve this ?

Thanks
Amit

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Mar, 2020 10:43 PM

    Feodor Fitsner's Avatar

    Hi Amit,

    You can have a notification template iterating through all jobs and their artifacts, for example:

    <p>Build artifacts:</p>
        <ul>
        {{#jobs}}
          {{#artifacts}}
            <li><a href="{{url}}">{{fileName}}</a></li>
          {{/artifacts}}
        {{/jobs}}
        </ul>
    
  2. 2 Posted by amit.m.srivasta... on 29 Mar, 2020 04:55 PM

    amit.m.srivastava's Avatar

    Thanks Feodor. It worked.

  3. 3 Posted by amit.m.srivasta... on 06 Apr, 2020 01:55 PM

    amit.m.srivastava's Avatar

    Getting this error when I try to download an artifact from old notification email.
    But it works when I go to Build history | Artifacts and download the file.

    <Error>
    <Code>AuthenticationFailed</Code>
    <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:9bbeae3e-201e-0075-321a-0c12b6000000 Time:2020-04-06T13:53:08.5541420Z</Message>
    <AuthenticationErrorDetail>Signature not valid in the specified time frame: Start [Mon, 30 Mar 2020 18:11:15 GMT] - Expiry [Mon, 30 Mar 2020 19:12:15 GMT] - Current [Mon, 06 Apr 2020 13:53:08 GMT]</AuthenticationErrorDetail>
    </Error>

  4. Support Staff 4 Posted by Feodor Fitsner on 06 Apr, 2020 04:57 PM

    Feodor Fitsner's Avatar

    {{url}} artifact download URL is temporary and expires in 60 minutes. However, you can replace it with {{permalink}} which will require user to authenticate in AppVeyor.

  5. 5 Posted by amit.m.srivasta... on 10 Apr, 2020 01:11 PM

    amit.m.srivastava's Avatar

    Thanks it worked for me.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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