blob: 55a13434b1ff0e77d72790dcd36f4b1ad4b49811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
- 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'
silent-start: true
wrappers:
- timestamps
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- shell: |
#!/bin/bash
env |grep GIT
env |grep GERRIT
jenkins-job-builder --version
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'
|