Fix job importation

- Revert "Delete trigger-ci-job-configs.yaml"

This reverts commit 6e494fa4a0fc93af16e911c49041ecd1263ad3bc.

- Revert "Disable trigger-ci-job-configs.yaml"

This reverts commit ae9703688131d0824815f81ed80be295fe39bdd8.

- Update JJB_PASSWORD variable
- Remove AUTH_TOKEN

Change-Id: I06037bb20ed202e216ab535ee44b3b0c1d2a9085
Signed-off-by: Saheer Babu <saheer.babu@arm.com>
diff --git a/trigger-ci-job-configs.yaml b/trigger-ci-job-configs.yaml
new file mode 100644
index 0000000..44d6d6b
--- /dev/null
+++ b/trigger-ci-job-configs.yaml
@@ -0,0 +1,88 @@
+- job:
+    name: trigger-ci-job-configs-next
+    project-type: freestyle
+    defaults: global
+    properties:
+        - authorization:
+            anonymous:
+                - job-discover
+                - job-read
+                - job-extended-read
+        - build-discarder:
+            days-to-keep: 30
+            num-to-keep: 200
+    disabled: false
+    node: jjb
+    display-name: 'CI job configs deployment (Next)'
+    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: configs
+    triggers:
+        - gerrit:
+            server-name: 'review.trustedfirmware.org'
+            trigger-on:
+                - change-merged-event
+            projects:
+                - project-compare-type: 'PLAIN'
+                  project-pattern: 'next/ci/tf-ci-scripts'
+                  branches:
+                    - branch-pattern: 'master'
+                - project-compare-type: 'PLAIN'
+                  project-pattern: 'next/ci/tf-m-job-configs'
+                  branches:
+                    - branch-pattern: 'master'
+                - project-compare-type: 'PLAIN'
+                  project-pattern: 'next/ci/tf-a-job-configs'
+                  branches:
+                    - branch-pattern: 'master'
+                - project-compare-type: 'PLAIN'
+                  project-pattern: 'next/ci/hafnium-job-configs'
+                  branches:
+                    - branch-pattern: 'master'
+            silent-start: true
+    wrappers:
+        - timestamps
+        - credentials-binding:
+            - text:
+                credential-id: JJB_USER
+                variable: JJB_USER
+        - credentials-binding:
+            - text:
+                credential-id: JJB_STAGING_PASSWORD
+                variable: JJB_PASSWORD
+    builders:
+        - shell: |
+            #!/bin/bash -e
+            echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
+        - build-name-setter:
+            name: 'version.txt'
+            file: true
+        - shell: |
+            #!/bin/bash
+
+            set -ex
+
+            echo ""
+            echo "########################################################################"
+            echo "    Gerrit Environment"
+            env |grep '^GERRIT'
+            echo "########################################################################"
+
+            cd configs/
+
+            export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
+            export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
+            jenkins-jobs --version
+            git clone "https://review.trustedfirmware.org/next/ci/tf-ci-scripts"
+            python3 tf-ci-scripts/ci/run-jjb.py
+    publishers:
+        - email:
+            recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org paul.sokolovsky@linaro.org fathi.boudra@linaro.org'