blob: 676ebbbedab8d77369a3fc26870740de34557a52 [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
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:
Arthur She6162aa42024-03-13 10:11:22 -070012 - 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
Arthur Shef974bc12024-02-04 22:28:10 -080022 - 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
Saheer Babufd524222025-01-21 23:42:41 +000041 branch-pattern: 'openci-migration-lts-v.*'
Arthur Shef974bc12024-02-04 22:28:10 -080042 project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +000043 project-pattern: 'next/TF-A/trusted-firmware-a'
Arthur Shef974bc12024-02-04 22:28:10 -080044 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