Arthur: Test tf-sync-repos.yaml

Signed-off-by: Arthur She <arthur.she@linaro.org>
Change-Id: I07c0276721b39f59086d728ba80f121a553546c3
diff --git a/tf-sync-repos.yaml b/tf-sync-repos.yaml
new file mode 100644
index 0000000..240018c
--- /dev/null
+++ b/tf-sync-repos.yaml
@@ -0,0 +1,56 @@
+- job:

+    name: tf-sync-repos

+    node: built-in

+    project-type: freestyle

+    concurrent: false

+    description: Mirror TF-M, TF-A, TS projects into GitHub

+    disabled: false

+    builders:

+    - shell: |-

+        #!/bin/bash -e

+

+        echo ""

+        echo "########################################################################"

+        echo "    Gerrit Environment"

+        env |grep '^GERRIT'

+        echo "########################################################################"

+

+        cd proj_src

+        ls -a

+        git remote show

+        git remote get_url origin

+        git branch

+    properties:

+    - build-discarder:

+        num-to-keep: 10

+    scm:

+        - git:

+            url: https://review.trustedfirmware.org/${GERRIT_PROJECT}

+            refspec: ${GERRIT_REFSPEC}

+            branches:

+                - ${GERRIT_BRANCH}

+            skip-tag: true

+            clean:

+                before: true

+            choosing-strategy: gerrit

+            basedir: proj_src

+    publishers:

+    - email:

+        recipients: 'arthur.she@linaro.org'

+    triggers:

+    - gerrit:

+        server-name: review.trustedfirmware.org

+        projects:

+        - project-compare-type: PLAIN

+          project-pattern: next/TF-A/trusted-firmware-a

+          branches:

+          - branch-compare-type: PLAIN

+            branch-pattern: master

+        silent: true

+        trigger-on:

+        - patchset-created-event

+    wrappers:

+    - credentials-binding:

+      - text:

+          credential-id: openci-bot-github-token

+          variable: AUTH_TOKEN