Arthur She | 11213dc | 2023-07-31 09:53:11 -0700 | [diff] [blame^] | 1 | - job:
|
| 2 | name: tf-sync-repos
|
| 3 | node: built-in
|
| 4 | project-type: freestyle
|
| 5 | concurrent: false
|
| 6 | description: Mirror TF-M, TF-A, TS projects into GitHub
|
| 7 | disabled: false
|
| 8 | builders:
|
| 9 | - shell: |-
|
| 10 | #!/bin/bash -e
|
| 11 |
|
| 12 | echo ""
|
| 13 | echo "########################################################################"
|
| 14 | echo " Gerrit Environment"
|
| 15 | env |grep '^GERRIT'
|
| 16 | echo "########################################################################"
|
| 17 |
|
| 18 | cd proj_src
|
| 19 | ls -a
|
| 20 | git remote show
|
| 21 | git remote get_url origin
|
| 22 | git branch
|
| 23 | properties:
|
| 24 | - build-discarder:
|
| 25 | num-to-keep: 10
|
| 26 | scm:
|
| 27 | - git:
|
| 28 | url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
|
| 29 | refspec: ${GERRIT_REFSPEC}
|
| 30 | branches:
|
| 31 | - ${GERRIT_BRANCH}
|
| 32 | skip-tag: true
|
| 33 | clean:
|
| 34 | before: true
|
| 35 | choosing-strategy: gerrit
|
| 36 | basedir: proj_src
|
| 37 | publishers:
|
| 38 | - email:
|
| 39 | recipients: 'arthur.she@linaro.org'
|
| 40 | triggers:
|
| 41 | - gerrit:
|
| 42 | server-name: review.trustedfirmware.org
|
| 43 | projects:
|
| 44 | - project-compare-type: PLAIN
|
| 45 | project-pattern: next/TF-A/trusted-firmware-a
|
| 46 | branches:
|
| 47 | - branch-compare-type: PLAIN
|
| 48 | branch-pattern: master
|
| 49 | silent: true
|
| 50 | trigger-on:
|
| 51 | - patchset-created-event
|
| 52 | wrappers:
|
| 53 | - credentials-binding:
|
| 54 | - text:
|
| 55 | credential-id: openci-bot-github-token
|
| 56 | variable: AUTH_TOKEN
|