Paul Sokolovsky | 383e6b7 | 2024-03-17 15:46:23 +0700 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts-release-tagged |
| 3 | node: docker-amd64-tf-a-jammy |
| 4 | project-type: freestyle |
| 5 | concurrent: false |
| 6 | disabled: false |
| 7 | description: Triggers when a new LTS release is tagged |
| 8 | properties: |
| 9 | - build-discarder: |
| 10 | days-to-keep: 90 |
| 11 | num-to-keep: 60 |
Paul Sokolovsky | 383e6b7 | 2024-03-17 15:46:23 +0700 | [diff] [blame] | 12 | triggers: |
| 13 | - gerrit: |
| 14 | server-name: 'review.trustedfirmware.org' |
| 15 | projects: |
Paul Sokolovsky | f9399c1 | 2024-03-17 23:34:02 +0700 | [diff] [blame] | 16 | - branches: |
| 17 | - branch-compare-type: REG_EXP |
| 18 | branch-pattern: refs/tags/lts-v.* |
| 19 | - branch-compare-type: REG_EXP |
| 20 | branch-pattern: refs/tags/sandbox/lts-v.* |
| 21 | project-compare-type: PLAIN |
| 22 | project-pattern: 'TF-A/trusted-firmware-a' |
Paul Sokolovsky | 383e6b7 | 2024-03-17 15:46:23 +0700 | [diff] [blame] | 23 | - branches: |
| 24 | - branch-compare-type: REG_EXP |
| 25 | branch-pattern: refs/tags/lts-v.* |
| 26 | - branch-compare-type: REG_EXP |
| 27 | branch-pattern: refs/tags/sandbox/lts-v.* |
| 28 | project-compare-type: PLAIN |
| 29 | project-pattern: 'sandbox/pfalcon/trusted-firmware-a' |
| 30 | trigger-on: |
| 31 | - ref-updated-event |
| 32 | wrappers: |
| 33 | - timestamps |
| 34 | builders: |
| 35 | - shell: | |
| 36 | #!/bin/bash |
| 37 | set -ex |
| 38 | env | grep GERRIT |
| 39 | if ! echo $GERRIT_REFNAME | grep -q -E ^refs/tags/; then |
| 40 | echo Not a tag event |
| 41 | exit |
| 42 | fi |
| 43 | echo "RELEASE_TAG=${GERRIT_REFNAME#refs/tags/}" >subjob.param |
| 44 | if echo ${GERRIT_REFNAME} | grep -q "sandbox/"; then |
| 45 | echo "SANDBOX_RUN=true" >>subjob.param |
| 46 | else |
| 47 | echo "SANDBOX_RUN=false" >>subjob.param |
| 48 | fi |
| 49 | - conditional-step: |
| 50 | condition-kind: file-exists |
| 51 | on-evaluation-failure: dont-run |
| 52 | condition-filename: subjob.param |
| 53 | condition-basedir: workspace |
| 54 | steps: |
| 55 | - trigger-builds: |
| 56 | - project: |
| 57 | - tf-a-lts-release-docs |
| 58 | block: true |
| 59 | current-parameters: true |
| 60 | property-file: subjob.param |
| 61 | - project: |
| 62 | - tf-a-lts-release-mail |
| 63 | block: true |
| 64 | current-parameters: true |
| 65 | property-file: subjob.param |