blob: 5a266857a062538890bc3983185cd6ab33daef1c [file] [log] [blame]
Arthur Shef974bc12024-02-04 22:28:10 -08001- job:
2 name: tf-a-lts-patch-stack-watcher
Arthur Sheeeef44c2025-01-09 20:48:32 -08003 node: docker-amd64-tf-a-jammy
Arthur Shef974bc12024-02-04 22:28:10 -08004 project-type: freestyle
5 concurrent: false
Chris Kay675db4f2025-06-24 14:14:34 +01006 description: This job will trigger Allow-CI job whenever a new patch is created. It also monitors all patches, if submit requirement is met, it will merge the patch
Arthur Shef974bc12024-02-04 22:28:10 -08007 disabled: false
8 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +01009 - bool:
10 name: ENABLE_PATCH_AUTO_SUBMISSION
11 description: |
12 Enable patch auto submission function
13 default: true
14 - bool:
15 name: ENABLE_AUTO_ALLOW_CI_JOB
16 description: |
17 Enable auto submit Allow-CI job
18 default: true
19 - string:
20 name: ALLOW_CI_JOB
21 description: |
22 To trigger Allow-CI+1 or Allow-CI+2 job when a new patch is created
23 default: Allow-CI=2
Arthur Shef974bc12024-02-04 22:28:10 -080024 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010025 - shell: !include-raw: scripts/tf-a-lts-patch-stack-watcher.sh
Arthur Shef974bc12024-02-04 22:28:10 -080026 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010027 - build-discarder:
28 days-to-keep: 60
29 num-to-keep: 120
Arthur Shef974bc12024-02-04 22:28:10 -080030 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010031 - gerrit:
32 silent: true
33 server-name: review.trustedfirmware.org
34 projects:
35 - branches:
36 - branch-compare-type: REG_EXP
37 branch-pattern: lts-v.*
38 project-compare-type: PLAIN
39 project-pattern: TF-A/trusted-firmware-a
40 trigger-on:
41 - comment-added-event:
42 approval-category: Verified
43 approval-value: 1
44 - comment-added-event:
45 approval-category: Code-Owner-Review
46 approval-value: 1
47 - comment-added-event:
48 approval-category: Allow-CI
49 approval-value: 1
50 - comment-added-event:
51 approval-category: Maintainer-Review
52 approval-value: 1
53 - patchset-created-event:
54 exclude-drafts: false
55 exclude-trivial-rebase: false
56 exclude-no-code-change: false
57 exclude-private: false
58 exclude-wip: false
Arthur Shef974bc12024-02-04 22:28:10 -080059 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010060 - timestamps
61 - credentials-binding:
62 - ssh-user-private-key:
63 credential-id: TFA_CI_BOT_USER_SSH_KEY
64 key-file-variable: CI_BOT_KEY
65 username-variable: CI_BOT_USERNAME
66 passphrase-variable: ""
Arthur Shef974bc12024-02-04 22:28:10 -080067 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +010068 - workspace-cleanup