Chris Kay | c1aa7ba | 2025-06-12 16:56:38 +0100 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts-patch-stack-watcher |
| 3 | node: docker-amd64-tf-a-jammy |
| 4 | project-type: freestyle |
| 5 | concurrent: false |
| 6 | description: |
| 7 | This job will trigger Allow-CI job whenever a new patch is created. |
| 8 | It also monitors all patches, if submit requirement is met, it |
| 9 | will merge the patch |
| 10 | disabled: false |
| 11 | parameters: |
| 12 | - bool: |
| 13 | name: ENABLE_PATCH_AUTO_SUBMISSION |
| 14 | description: | |
| 15 | Enable patch auto submission function |
| 16 | default: true |
| 17 | - bool: |
| 18 | name: ENABLE_AUTO_ALLOW_CI_JOB |
| 19 | description: | |
| 20 | Enable auto submit Allow-CI job |
| 21 | default: true |
| 22 | - string: |
| 23 | name: ALLOW_CI_JOB |
| 24 | description: | |
| 25 | To trigger Allow-CI+1 or Allow-CI+2 job when a new patch is created |
| 26 | default: 'Allow-CI=2' |
| 27 | builders: |
| 28 | - shell: |
| 29 | !include-raw: scripts/tf-a-lts-patch-stack-watcher.sh |
| 30 | properties: |
| 31 | - build-discarder: |
| 32 | days-to-keep: 60 |
| 33 | num-to-keep: 120 |
| 34 | # triggers: |
| 35 | # - gerrit: |
| 36 | # silent: true |
| 37 | # server-name: 'review.trustedfirmware.org' |
| 38 | # projects: |
| 39 | # - branches: |
| 40 | # - branch-compare-type: REG_EXP |
| 41 | # branch-pattern: 'lts-v.*' |
| 42 | # project-compare-type: PLAIN |
| 43 | # project-pattern: 'TF-A/trusted-firmware-a' |
| 44 | # trigger-on: |
| 45 | # - comment-added-event: |
| 46 | # approval-category: "Verified" |
| 47 | # approval-value: 1 |
| 48 | # - comment-added-event: |
| 49 | # approval-category: "Code-Owner-Review" |
| 50 | # approval-value: 1 |
| 51 | # - comment-added-event: |
| 52 | # approval-category: "Allow-CI" |
| 53 | # approval-value: 1 |
| 54 | # - comment-added-event: |
| 55 | # approval-category: "Maintainer-Review" |
| 56 | # approval-value: 1 |
| 57 | # - patchset-created-event: |
| 58 | # exclude-drafts: false |
| 59 | # exclude-trivial-rebase: false |
| 60 | # exclude-no-code-change: false |
| 61 | # exclude-private: false |
| 62 | # exclude-wip: false |
| 63 | wrappers: |
| 64 | - timestamps |
| 65 | - credentials-binding: |
| 66 | - ssh-user-private-key: |
| 67 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 68 | key-file-variable: CI_BOT_KEY |
| 69 | username-variable: CI_BOT_USERNAME |
| 70 | passphrase-variable: '' |
| 71 | publishers: |
| 72 | - workspace-cleanup |