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.

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