aboutsummaryrefslogtreecommitdiff
path: root/ci-job-configs-sanity-check.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-04-26 08:02:55 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2016-04-26 08:34:58 +0300
commit5a9b3060baaeefb21c80a9a20e1ce65d4edccf24 (patch)
tree33ccc6a180765a633dff0ebfb4bb8e5f18010172 /ci-job-configs-sanity-check.yaml
parent4d87da726b5cab3220a63f200c9bdaed745fd6d8 (diff)
Add CI job configs sanity check
Change-Id: I87b948502d6a5057868a3491eb67d034793dfe88 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'ci-job-configs-sanity-check.yaml')
-rw-r--r--ci-job-configs-sanity-check.yaml63
1 files changed, 63 insertions, 0 deletions
diff --git a/ci-job-configs-sanity-check.yaml b/ci-job-configs-sanity-check.yaml
new file mode 100644
index 0000000000..594a8d1756
--- /dev/null
+++ b/ci-job-configs-sanity-check.yaml
@@ -0,0 +1,63 @@
+- job:
+ name: ci-job-configs-sanity-check
+ project-type: freestyle
+ defaults: global
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 30
+ disabled: false
+ node: build
+ display-name: 'CI job configs sanity check'
+ scm:
+ - git:
+ url: https://review.linaro.org/ci/job/configs
+ refspec: ${GERRIT_REFSPEC}
+ name: ''
+ branches:
+ - ${GERRIT_PATCHSET_REVISION}
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: true
+ choosing-strategy: gerrit
+ triggers:
+ - gerrit:
+ server-name: 'review.linaro.org'
+ trigger-on:
+ - patchset-created-event
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'ci/job/configs'
+ branches:
+ - branch-pattern: 'master'
+ wrappers:
+ - timestamps
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ env |grep GIT
+ env |grep GERRIT
+
+ set -ex
+
+ git clean -fdx
+ git reset --hard
+
+ # FIXME run-jjb.py was meant to be used for deployment only
+ # use JJB 'test' command instead of 'update' command
+ sed -i "s|update|test|" run-jjb.py
+ # set a fake publish key as it is required by run-jjb.py
+ export PUBLISH_KEY="test"
+
+ export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
+ python run-jjb.py
+ publishers:
+ - email:
+ recipients: 'fathi.boudra@linaro.org'