-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmacros.yaml
executable file
·240 lines (218 loc) · 6.6 KB
/
macros.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
- builder:
name: devstack-checkout
builders:
- shell: |
#!/bin/bash -xe
if [[ ! -e devstack-gate ]]; then
git clone https://git.openstack.org/openstack-infra/devstack-gate
else
cd devstack-gate
git remote set-url origin https://git.openstack.org/openstack-infra/devstack-gate
git remote update
git reset --hard
if ! git clean -x -f ; then
sleep 1
git clean -x -f
fi
git checkout master
git reset --hard remotes/origin/master
if ! git clean -x -f ; then
sleep 1
git clean -x -f
fi
cd ..
fi
- builder:
name: devstack-checkout-http
builders:
- shell: |
#!/bin/bash -xe
if [[ ! -e devstack-gate ]]; then
git clone http://git.openstack.org/openstack-infra/devstack-gate
else
cd devstack-gate
git remote set-url origin http://git.openstack.org/openstack-infra/devstack-gate
git remote update
git reset --hard
if ! git clean -x -f ; then
sleep 1
git clean -x -f
fi
git checkout master
git reset --hard remotes/origin/master
if ! git clean -x -f ; then
sleep 1
git clean -x -f
fi
cd ..
fi
- builder:
name: python-install-from-zuul
builders:
- shell: |
#!/bin/bash -xe
# Install the client from the patch
git clone $ZUUL_URL/$ZUUL_PROJECT
cd $ZUUL_PROJECT
git fetch $ZUUL_URL/$ZUUL_PROJECT $ZUUL_REF
git checkout FETCH_HEAD
sudo python setup.py install
#TODO: Make this configurable for alternative mirrors
- builder:
name: gozer-pypi-setup
builders:
- shell: |
#!/bin/bash -xe
echo "Using pypi mirror http://pypi.gozer.hpcloud.net/openstack/latest"
cat <<EOF > ~/.pydistutils.cfg
[easy_install]
index_url = http://pypi.gozer.hpcloud.net/latest
EOF
sudo mkdir -p ~/.pip/
cat <<EOF > ~/.pip/pip.conf
[global]
proxy = http://proxy.houston.hp.com:8080/
index-url = http://pypi.gozer.hpcloud.net/latest
extra-index-url = http://pypi.python.org/simple
timeout = 90
[install]
trusted-host=
pypi.gozer.hpcloud.net
pypi.python.org
EOF
# Make sure the top level pip configuration also has this file
sudo cp ~/.pip/pip.conf /etc/pip.conf
- builder:
name: link-logs
builders:
- shell: |
#!/bin/sh
echo "Triggered by: https://review.openstack.org/$ZUUL_CHANGE patchset $ZUUL_PATCHSET"
if [ -z "$LOG_PATH" ]; then
export LOG_PATH=$JOB_NAME/$BUILD_ID
fi
echo "Detailed logs: http://openstack.infortrend.com/$LOG_PATH/"
- builder:
name: link-logs-dsvm
builders:
- shell: |
#!/bin/sh
echo "Detailed logs: http://openstack.infortrend.com/$JOB_NAME/$BUILD_ID/"
- publisher:
name: coverage-log
publishers:
- scp:
site: 'LogServer'
files:
- target: 'logs/$JOB_NAME/$BUILD_ID'
source: 'cover/**'
keep-hierarchy: true
copy-after-failure: true
- publisher:
name: console-log
publishers:
- scp:
site: 'LogServer'
files:
- target: 'logs/$JOB_NAME/$BUILD_ID'
copy-console: true
copy-after-failure: true
- publisher:
name: devstack-logs
publishers:
- scp:
site: 'LogServer'
files:
- target: 'logs/$JOB_NAME/$BUILD_ID'
source: 'logs/**'
keep-hierarchy: true
copy-after-failure: true
- publisher:
name: review-console-log
publishers:
- scp:
site: 'LogServer'
files:
- target: 'logs/$LOG_PATH'
copy-console: true
copy-after-failure: true
- publisher:
name: review-devstack-logs
publishers:
- scp:
site: 'LogServer'
files:
- target: 'logs/$LOG_PATH'
source: 'logs/**'
keep-hierarchy: true
copy-after-failure: true
- publisher:
name: devstack-logs-local
publishers:
- copy-to-master:
includes:
- 'logs/**'
destination: '/tmp/$BUILD_TAG'
- publisher:
name: wait-reset-iscsi
publishers:
- trigger:
project: wait-reset-iscsi-slave
threshold: FAILURE
- publisher:
name: wait-reset-fc
publishers:
- trigger:
project: wait-reset-fc-slave
threshold: FAILURE
- publisher:
name: reset-iscsi-slave-node
publishers:
- trigger:
project: reset-iscsi-slave
threshold: FAILURE
- publisher:
name: reset-fc-slave-node
publishers:
- trigger:
project: reset-fc-slave
threshold: FAILURE
- publisher:
name: post-build-iscsi
publishers:
- post-tasks:
- matches:
- log-text: Copying console log
operator: AND
script: |
sudo python /home/ift/Documents/reset_script/reset.py
sudo java -jar /home/ift/Documents/reset_script/raidcmd_ESDS10.jar 10.10.10.200 reset controller -y
sudo rm -rf /opt/stack/new/*
ssh ift@master 'java -jar ~/jenkins-cli.jar -s http://localhost:8080/ build reset-iscsi-slave'
sleep 5
- publisher:
name: post-build-fc
publishers:
- post-tasks:
- matches:
- log-text: Copying console log
operator: AND
script: |
sudo python /home/ift/Documents/reset_script/reset.py
sudo java -jar /home/ift/Documents/reset_script/raidcmd_ESDS10.jar 10.10.10.200 reset controller -y
sudo rm -rf /opt/stack/new/*
ssh ift@master 'java -jar ~/jenkins-cli.jar -s http://localhost:8080/ build reset-fc-slave'
sleep 5
- builder:
name: net-info
builders:
- shell: |
#!/bin/sh
export PATH=$PATH:/sbin
echo "Network interface addresses..."
ip address show
echo "Network routing tables..."
ip route show
ip -6 route show
echo "Network neighbors..."
ip neighbor show