aboutsummaryrefslogtreecommitdiff
path: root/trigger-private-lt-qcom-ci-job-configs.yaml
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2018-10-15 17:11:47 +0530
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2018-10-23 23:27:07 +0200
commitbe5e67d41d17963b637f1988287de263a4412117 (patch)
tree6604eff2a44d8bf95c3f375c068f393778bd7135 /trigger-private-lt-qcom-ci-job-configs.yaml
parent420bb62f341d9d15a32785a12fde11abdfddfd8d (diff)
trigger-private-lt-qcom-ci-job-configs: Add new job
The job deploys CI jobs from private git repository. This needs to be deployed with hosting a copy of landing-teams/working/qualcomm/ci/job/configs on dev-private-git.linaro.org Change-Id: I5b427bda1429d190aa9375535c3ba01d737bc66e Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'trigger-private-lt-qcom-ci-job-configs.yaml')
-rw-r--r--trigger-private-lt-qcom-ci-job-configs.yaml99
1 files changed, 99 insertions, 0 deletions
diff --git a/trigger-private-lt-qcom-ci-job-configs.yaml b/trigger-private-lt-qcom-ci-job-configs.yaml
new file mode 100644
index 0000000000..49020ed373
--- /dev/null
+++ b/trigger-private-lt-qcom-ci-job-configs.yaml
@@ -0,0 +1,99 @@
+- job:
+ name: trigger-private-lt-qcom-ci-job-configs
+ project-type: freestyle
+ defaults: global
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ linaro-landing-team-qualcomm-personnel:
+ - job-read
+ - job-extended-read
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 200
+ disabled: false
+ node: master
+ display-name: 'CI job configs deployment for Qualcomm LT Private Jobs'
+ triggers:
+ - gerrit:
+ server-name: 'dev-private-review.linaro.org'
+ trigger-on:
+ - change-merged-event
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'landing-teams/working/qualcomm/ci/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_PASSWORD
+ variable: JJB_PASSWORD
+ - credentials-binding:
+ - text:
+ credential-id: LAVA_USER
+ variable: LAVA_USER
+ - credentials-binding:
+ - text:
+ credential-id: LAVA_TOKEN
+ variable: LAVA_TOKEN
+ - credentials-binding:
+ - text:
+ credential-id: LT_QCOM_KEY
+ variable: LT_QCOM_KEY
+ - credentials-binding:
+ - text:
+ credential-id: AUTH_TOKEN
+ variable: AUTH_TOKEN
+ - ssh-agent-credentials:
+ users:
+ - 'LT_QUALCOMM_PRIVATE_KEY_SSH'
+ 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 -e
+
+ echo ""
+ echo "########################################################################"
+ echo " Gerrit Environment"
+ env |grep '^GERRIT'
+ echo "########################################################################"
+
+ git config --global user.name "Linaro CI"
+ git config --global user.email "ci_notify@linaro.org"
+
+ # Add SSH server signatures to known_hosts list.
+ bash -c "ssh-keyscan dev-private-git.linaro.org > ${HOME}/.ssh/known_hosts"
+ bash -c "ssh-keyscan dev-private-review.linaro.org >> ${HOME}/.ssh/known_hosts"
+ bash -c "ssh-keyscan -t rsa -p 29418 dev-private-review.linaro.org >> \
+ ${HOME}/.ssh/known_hosts"
+
+ rm -rf ${WORKSPACE}/*
+
+ git clone -b ${GERRIT_BRANCH} --depth 2 ssh://git@dev-private-git.linaro.org/${GERRIT_PROJECT}
+ cd *
+ git fetch ssh://git@dev-private-git.linaro.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC}
+ git checkout -q FETCH_HEAD
+
+ export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
+ export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
+ jenkins-jobs --version
+ wget -q https://git.linaro.org/ci/job/configs.git/plain/run-jjb.py -O run-jjb.py
+ python run-jjb.py
+ publishers:
+ - email:
+ recipients: 'nicolas.dechesne@linaro.org luis.machado@linaro.org'