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