blob: d94c7bf1d7ef8293b42269afedbbf7178ed84ad4 [file] [log] [blame]
Paul Sokolovskyf0ecdb52023-11-27 22:30:14 +03001- job:
2 name: tf-a-lts-release-mail
3 node: docker-amd64-tf-a-jammy
4 project-type: freestyle
5 concurrent: true
6 disabled: false
7 defaults: global
8 Description: |
9 Render TF-A LTS release email template.
10 properties:
11 - build-discarder:
Paul Sokolovsky898f0312024-01-30 00:06:28 +070012 days-to-keep: 365
13 num-to-keep: 50
Paul Sokolovskyf0ecdb52023-11-27 22:30:14 +030014 - authorization:
15 !include: authorization.yaml.inc
16 parameters:
17 - string:
18 name: RELEASE_TAG
19 default: '--latest'
20 description: |
21 Release git tag, e.g. 'lts-v2.8.10', or '--latest' to get latest tag.
22# triggers:
23# - gerrit:
24# silent: true
25# server-name: 'review.trustedfirmware.org'
26# projects:
27# - branches:
28# - branch-compare-type: PLAIN
29# branch-pattern: integration
30# project-compare-type: PLAIN
31# project-pattern: 'TF-A/trusted-firmware-a'
32# trigger-on:
33# - patchset-created-event
34 wrappers:
35 - timestamps
36 - timeout:
37 timeout: 5
38 fail: true
39 builders:
40 - shell: |
41 #!/bin/bash
42 set -ex
43
44 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
45 ./tf-a-ci-scripts/lts/lts-release-mail.py ${RELEASE_TAG} >email.txt
46 awk -F": " '/Subject:/ {print $2}' email.txt >subject.txt
47 # Remove email headers, put in a seperate file.
48 sed '0,/^$/d' email.txt >body.txt
49 set +x
50 echo "======================================================================="
51 cat email.txt
52 echo "======================================================================="
53 publishers:
54 - archive:
55 artifacts: email.txt
56 latest-only: false
57 allow-empty: true
58 - conditional-publisher:
59 - condition-kind: file-exists
60 on-evaluation-failure: dont-run
61 condition-filename: email.txt
62 condition-basedir: workspace
63 action:
64 - email-ext:
65 always: true
66 subject: '${FILE, path="subject.txt"}'
67 body: '${FILE, path="body.txt"}'
68 recipients: paul.sokolovsky@linaro.org