Arthur She | b836984 | 2023-08-27 09:46:14 -0700 | [diff] [blame] | 1 | - job: |
| 2 | block-downstream: false |
| 3 | block-upstream: false |
| 4 | disabled: false |
| 5 | name: tf-github-autoresponse |
| 6 | display-name: 'TF Github auto response' |
| 7 | project-type: freestyle |
Arthur She | 60d3823 | 2025-01-15 14:48:07 -0800 | [diff] [blame] | 8 | node: docker-amd64-tf-a-jammy |
Arthur She | 806eab0 | 2024-01-24 18:57:04 -0800 | [diff] [blame] | 9 | parameters: |
| 10 | - string: |
| 11 | name: BYPASS_ISSUE_RESPONSE_PROJ |
| 12 | description: | |
Arthur She | 15c6cb4 | 2024-07-12 07:52:02 -0700 | [diff] [blame] | 13 | The projects that don't need the issue auto-response |
| 14 | default: 'TrustedFirmware-A/trusted-firmware-a TrustedFirmware-A/tf-a-ci-scripts TrustedFirmware-A/tf-a-tests TF-Hafnium/hafnium TrustedFirmware-M/trusted-firmware-m' |
Arthur She | 806eab0 | 2024-01-24 18:57:04 -0800 | [diff] [blame] | 15 | - string: |
| 16 | name: BYPASS_PR_RESPONSE_PROJ |
| 17 | description: | |
Arthur She | 15c6cb4 | 2024-07-12 07:52:02 -0700 | [diff] [blame] | 18 | The projects that don't need the PR auto-response |
Arthur She | 806eab0 | 2024-01-24 18:57:04 -0800 | [diff] [blame] | 19 | default: '' |
Arthur She | b836984 | 2023-08-27 09:46:14 -0700 | [diff] [blame] | 20 | builders: |
| 21 | - shell: |- |
| 22 | #!/bin/bash |
| 23 | echo "########################################################################" |
| 24 | echo " Github Environment" |
| 25 | env |grep '^github_' |
| 26 | echo "########################################################################" |
| 27 | bash tf-ci-scripts/ci/run_github_autoreply.sh |
| 28 | properties: |
| 29 | - build-discarder: |
| 30 | days-to-keep: 30 |
| 31 | num-to-keep: 100 |
| 32 | scm: |
| 33 | - git: |
| 34 | branches: |
| 35 | - master |
| 36 | clean: |
| 37 | before: true |
| 38 | url: https://review.trustedfirmware.org/ci/tf-ci-scripts |
| 39 | basedir: tf-ci-scripts |
| 40 | triggers: |
| 41 | - generic-webhook-trigger: |
| 42 | post-content-params: |
| 43 | - type: JSONPath |
| 44 | key: github_repo_full_name |
| 45 | value: $.repository.full_name |
| 46 | - type: JSONPath |
Olivier Deprez | bd6ead5 | 2024-02-21 10:15:27 +0100 | [diff] [blame] | 47 | key: github_issue_num |
Arthur She | b836984 | 2023-08-27 09:46:14 -0700 | [diff] [blame] | 48 | value: $.issue.number |
| 49 | - type: JSONPath |
| 50 | key: github_pr_num |
| 51 | value: $.pull_request.number |
| 52 | token: trustedfirmware_github_auto_response |
| 53 | wrappers: |
| 54 | - credentials-binding: |
| 55 | - text: |
| 56 | credential-id: openci-bot-github-token |
| 57 | variable: AUTH_TOKEN |