blob: af8c67a68a5c87a7648c7a2d6ee12e9433da83ee (
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
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
|
---
- job-template:
name: '{env}-resilience-healthdist'
disabled: '{obj:disabled_var}'
project-type: freestyle
lab-name: ''
tenant-name: ''
scm:
- git-integration:
branch: "{integration-branch}"
wrappers:
- timestamps
parameters:
- string:
name: POD_TO_DELETE
description: 'Name of pod to delete. This string will be grepped against the pod list and used to delete the pod.'
properties:
- build-blocker:
blocking-jobs:
- "{env}-deploy"
- "{env}-healthcheck"
builders:
- shell: |
#!/bin/bash
set +x
. $WORKSPACE/deployment/heat/onap-rke/env/{lab-name}/{tenant-name}-openrc
. $JENKINS_HOME/onap-lab-ci/labs/{lab-name}-openrc
source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
set -x
rm -rf $WORKSPACE/archives
mkdir -p $WORKSPACE/archives
SSH_KEY=~/.ssh/onap_key
STACK_NAME="{stack-name}"
NFS_IP=$(openstack stack output show $STACK_NAME nfs_vm_ip -c output_value -f value)
K8S_IP=$(openstack stack output show $STACK_NAME k8s_01_vm_ip -c output_value -f value)
ssh-keygen -R $NFS_IP
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
ROBOT_POD=$(echo "kubectl -n onap get pods | grep robot | sed 's/ .*//'" | ssh -i $SSH_KEY -o StrictHostKeychecking=no ubuntu@$NFS_IP sudo su)
if [ "$ROBOT_POD" == "" ]; then
exit 1
fi
POD_TO_KILL=$(echo "kubectl -n onap get pods | grep $POD_TO_DELETE | sed 's/ .*//' | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
echo "kubectl -n onap delete pod $POD_TO_KILL" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
for n in $(seq 1 180); do
sleep 30
RESULT=$(ssh -i $SSH_KEY ubuntu@$NFS_IP 'sudo su -c "kubectl -n onap get pods"' | grep -vE 'NAME|Completed|Error|1/1|2/2|3/3' | wc -l)
if [[ $? -eq 0 && $RESULT -eq 0 ]]; then
break
fi
done
ssh -i $SSH_KEY ubuntu@$NFS_IP 'sudo su -l root -c "/root/oom/kubernetes/robot/ete-k8s.sh onap healthdist"'
retval=$?
LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep healthdist | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
if [ "$LOG_DIR" == "" ]; then
exit 1
fi
rsync -e "ssh -i $SSH_KEY" -avtz ubuntu@$NFS_IP:/dockerdata-nfs/dev-robot/robot/logs/$LOG_DIR/ $WORKSPACE/archives/
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "Browse Robot results at http://$K8S_IP:30209/logs/$LOG_DIR/"
exit 0
publishers:
- integration-robot
- archive-logs
- job-template:
name: '{env}-resilience-instantiateDemoVFWCL'
disabled: '{obj:disabled_var}'
project-type: freestyle
lab-name: ''
tenant-name: ''
scm:
- git-integration:
branch: "{integration-branch}"
wrappers:
- timestamps
parameters:
- string:
name: POD_TO_DELETE
description: 'Name of pod to delete. This string will be grepped against the pod list and used to delete the pod.'
properties:
- build-blocker:
blocking-jobs:
- "{env}-deploy"
- "{env}-healthcheck"
builders:
- shell: |
#!/bin/bash
set +x
. $WORKSPACE/deployment/heat/onap-rke/env/{lab-name}/{tenant-name}-openrc
. $JENKINS_HOME/onap-lab-ci/labs/{lab-name}-openrc
source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
set -x
rm -rf $WORKSPACE/archives
mkdir -p $WORKSPACE/archives
SSH_KEY=~/.ssh/onap_key
STACK_NAME="{stack-name}"
NFS_IP=$(openstack stack output show $STACK_NAME nfs_vm_ip -c output_value -f value)
K8S_IP=$(openstack stack output show $STACK_NAME k8s_01_vm_ip -c output_value -f value)
ssh-keygen -R $NFS_IP
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
ROBOT_POD=$(echo "kubectl -n onap get pods | grep robot | sed 's/ .*//'" | ssh -i $SSH_KEY -o StrictHostKeychecking=no ubuntu@$NFS_IP sudo su)
if [ "$ROBOT_POD" == "" ]; then
exit 1
fi
POD_TO_KILL=$(echo "kubectl -n onap get pods | grep $POD_TO_DELETE | sed 's/ .*//' | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
echo "kubectl -n onap delete pod $POD_TO_KILL" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
for n in $(seq 1 180); do
sleep 30
RESULT=$(ssh -i $SSH_KEY ubuntu@$NFS_IP 'sudo su -c "kubectl -n onap get pods"' | grep -vE 'NAME|Completed|Error|1/1|2/2|3/3' | wc -l)
if [[ $? -eq 0 && $RESULT -eq 0 ]]; then
break
fi
done
ssh -i $SSH_KEY ubuntu@$NFS_IP 'sudo su -l root -c "/root/oom/kubernetes/robot/ete-k8s.sh onap instantiateDemoVFWCL"'
retval=$?
LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep instantiateDemoVFWCL | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
if [ "$LOG_DIR" == "" ]; then
exit 1
fi
rsync -e "ssh -i $SSH_KEY" -avtz ubuntu@$NFS_IP:/dockerdata-nfs/dev-robot/robot/logs/$LOG_DIR/ $WORKSPACE/archives/
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "Browse Robot results at http://$K8S_IP:30209/logs/$LOG_DIR/"
# clean up demo stacks
DEMO_STACKS=$(openstack stack list -f value -c "Stack Name" --sort creation_time:desc | grep Vfmodule_Demo_ )
if [ ! -z "$DEMO_STACKS" ]; then
openstack stack delete -y $DEMO_STACKS
fi
# clean up vVG VNFs
VVG_SERVERS=$(openstack server list -f value -c Name --sort creation_time:desc | grep vVG_)
if [ ! -z "$VVG_SERVERS" ]; then
openstack server delete $VVG_SERVERS
fi
exit 0
publishers:
- integration-robot
- archive-logs
- job-template:
name: '{env}-resilience-vfwclosedloop'
disabled: '{obj:disabled_var}'
project-type: freestyle
lab-name: ''
tenant-name: ''
scm:
- git-integration:
branch: "{integration-branch}"
wrappers:
- timestamps
parameters:
- string:
name: POD_TO_DELETE
description: 'Name of pod to delete. This string will be grepped against the pod list and used to delete the pod.'
properties:
- build-blocker:
blocking-jobs:
- "{env}-deploy"
- "{env}-healthcheck"
builders:
- shell: |
#!/bin/bash
set +x
. $WORKSPACE/deployment/heat/onap-rke/env/{lab-name}/{tenant-name}-openrc
. $JENKINS_HOME/onap-lab-ci/labs/{lab-name}-openrc
source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
set -x
rm -rf $WORKSPACE/archives
mkdir -p $WORKSPACE/archives
SSH_KEY=~/.ssh/onap_key
STACK_NAME="{stack-name}"
NFS_IP=$(openstack stack output show $STACK_NAME nfs_vm_ip -c output_value -f value)
K8S_IP=$(openstack stack output show $STACK_NAME k8s_01_vm_ip -c output_value -f value)
ssh-keygen -R $NFS_IP
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
ROBOT_POD=$(echo "kubectl -n onap get pods | grep robot | sed 's/ .*//'" | ssh -i $SSH_KEY -o StrictHostKeychecking=no ubuntu@$NFS_IP sudo su)
if [ "$ROBOT_POD" == "" ]; then
exit 1
fi
POD_TO_KILL=$(echo "kubectl -n onap get pods | grep $POD_TO_DELETE | sed 's/ .*//' | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
echo "kubectl -n onap delete pod $POD_TO_KILL" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
for n in $(seq 1 180); do
sleep 30
RESULT=$(ssh -i $SSH_KEY ubuntu@$NFS_IP 'sudo su -c "kubectl -n onap get pods"' | grep -vE 'NAME|Completed|Error|1/1|2/2|3/3' | wc -l)
if [[ $? -eq 0 && $RESULT -eq 0 ]]; then
break
fi
done
PKG_STACK=$(openstack stack list -f value -c "Stack Name" --sort creation_time:desc | grep Vfmodule_Demo_vFWCLvPKG | head -1)
PUBLIC_NET_ID=$(openstack stack show $STACK_NAME -f json | jq -r '.parameters.public_net_id')
PUBLIC_NET_NAME=$(openstack network show $PUBLIC_NET_ID -f value -c name)
PKG_IP=$(openstack stack resource show $PKG_STACK vpg_server_0 -f json | jq -r ".attributes.addresses.$PUBLIC_NET_NAME[0].addr")
for n in $(seq 1 10); do
echo "Wait for vfwclosedloop count $n of 10"
echo "/root/oom/kubernetes/robot/demo-k8s.sh onap vfwclosedloop $PKG_IP" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
RESULT=$?
if [[ $RESULT -eq 0 ]]; then
break
fi
done
LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep vfwclosedloop | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
if [ "$LOG_DIR" == "" ]; then
exit 1
fi
rsync -e "ssh -i $SSH_KEY" -avtz ubuntu@$NFS_IP:/dockerdata-nfs/dev-robot/robot/logs/$LOG_DIR/ $WORKSPACE/archives/
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "Browse Robot results at http://$K8S_IP:30209/logs/$LOG_DIR/"
exit 0
publishers:
- integration-robot
- archive-logs
- job-template:
disabled_var:
name: '{env}-stability72hr'
disabled: '{obj:disabled_var}'
project-type: freestyle
lab-name: ''
tenant-name: ''
scm:
- git-integration:
branch: "{integration-branch}"
wrappers:
- timestamps
triggers:
- timed: '0 * * * *'
properties:
- build-blocker:
blocking-jobs:
- "{env}-deploy"
- "{env}-healthcheck"
- "{env}-instantiate"
- "{env}-manual"
- "{env}-staging-manual"
builders:
- shell: |
#!/bin/bash
set +x
. $WORKSPACE/deployment/heat/onap-rke/env/{lab-name}/{tenant-name}-openrc
. $JENKINS_HOME/onap-lab-ci/labs/{lab-name}-openrc
source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
set -x
rm -rf $WORKSPACE/archives
mkdir -p $WORKSPACE/archives
SSH_KEY=~/.ssh/onap_key
STACK_NAME="{stack-name}"
NFS_IP=$(openstack stack output show $STACK_NAME nfs_vm_ip -c output_value -f value)
K8S_IP=$(openstack stack output show $STACK_NAME k8s_01_vm_ip -c output_value -f value)
ssh-keygen -R $NFS_IP
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
ROBOT_POD=$(echo "kubectl -n onap get pods | grep robot | sed 's/ .*//'" | ssh -i $SSH_KEY -o StrictHostKeychecking=no ubuntu@$NFS_IP sudo su)
if [ "$ROBOT_POD" == "" ]; then
exit 1
fi
ssh -i $SSH_KEY ubuntu@$NFS_IP 'sudo su -l root -c "/root/oom/kubernetes/robot/ete-k8s.sh onap stability72hr"'
retval=$?
LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep stability72hr | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
if [ "$LOG_DIR" == "" ]; then
exit 1
fi
rsync -e "ssh -i $SSH_KEY" -avtz ubuntu@$NFS_IP:/dockerdata-nfs/dev-robot/robot/logs/$LOG_DIR/ $WORKSPACE/archives/
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "Browse Robot results at http://$K8S_IP:30209/logs/$LOG_DIR/"
# clean up demo stacks
DEMO_STACKS=$(openstack stack list -f value -c "Stack Name" --sort creation_time:desc | grep Vfmodule_Ete_ )
if [ ! -z "$DEMO_STACKS" ]; then
openstack stack delete -y $DEMO_STACKS
fi
# clean up vVG VNFs
VVG_SERVERS=$(openstack server list -f value -c Name --sort creation_time:desc | grep vVG_)
if [ ! -z "$VVG_SERVERS" ]; then
openstack server delete $VVG_SERVERS
fi
exit 0
publishers:
- integration-robot
- archive-logs
- job-template:
disabled_var:
name: '{env}-vfwclosedloop'
disabled: '{obj:disabled_var}'
project-type: freestyle
lab-name: ''
tenant-name: ''
scm:
- git-integration:
branch: "{integration-branch}"
wrappers:
- timestamps
triggers:
- timed: '0 * * * *'
properties:
- build-blocker:
blocking-jobs:
- "{env}-deploy"
- "{env}-healthcheck"
- "{env}-instantiate"
- "{env}-manual"
- "{env}-staging-manual"
builders:
- shell: |
#!/bin/bash
set +x
. $WORKSPACE/deployment/heat/onap-rke/env/{lab-name}/{tenant-name}-openrc
. $JENKINS_HOME/onap-lab-ci/labs/{lab-name}-openrc
source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
set -x
rm -rf $WORKSPACE/archives
mkdir -p $WORKSPACE/archives
SSH_KEY=~/.ssh/onap_key
STACK_NAME="{stack-name}"
NFS_IP=$(openstack stack output show $STACK_NAME nfs_vm_ip -c output_value -f value)
K8S_IP=$(openstack stack output show $STACK_NAME k8s_01_vm_ip -c output_value -f value)
ssh-keygen -R $NFS_IP
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
ROBOT_POD=$(echo "kubectl -n onap get pods | grep robot | sed 's/ .*//'" | ssh -i $SSH_KEY -o StrictHostKeychecking=no ubuntu@$NFS_IP sudo su)
if [ "$ROBOT_POD" == "" ]; then
exit 1
fi
PKG_STACK=$(openstack stack list -f value -c "Stack Name" --sort creation_time:desc | grep Vfmodule_Demo_vFWCLvPKG | head -1)
PUBLIC_NET_ID=$(openstack stack show $STACK_NAME -f json | jq -r '.parameters.public_net_id')
PUBLIC_NET_NAME=$(openstack network show $PUBLIC_NET_ID -f value -c name)
PKG_IP=$(openstack stack resource show $PKG_STACK vpg_server_0 -f json | jq -r ".attributes.addresses.$PUBLIC_NET_NAME[0].addr")
echo "/root/oom/kubernetes/robot/demo-k8s.sh onap vfwclosedloop $PKG_IP" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
retval=$?
LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep vfwclosedloop | head -1" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su)
if [ "$LOG_DIR" == "" ]; then
exit 1
fi
rsync -e "ssh -i $SSH_KEY" -avtz ubuntu@$NFS_IP:/dockerdata-nfs/dev-robot/robot/logs/$LOG_DIR/ $WORKSPACE/archives/
echo "kubectl top nodes" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "kubectl get pods -n onap | grep -vE 'Completed|Error|1/1|2/2|3/3'" | ssh -i $SSH_KEY ubuntu@$NFS_IP sudo su
echo "Browse Robot results at http://$K8S_IP:30209/logs/$LOG_DIR/"
exit 0
publishers:
- integration-robot
- archive-logs
- job-template:
name: 'oom-verify'
project-type: freestyle
parameters:
- string:
name: GERRIT_PROJECT
default: 'oom'
description: 'GERRIT_PROJECT parameter if not given by trigger'
- string:
name: GERRIT_BRANCH
default: '{branch}'
description: 'JJB configured GERRIT_BRANCH parameter'
- string:
name: GERRIT_REFSPEC
default: 'refs/heads/{branch}'
description: 'GERRIT_REFSPEC parameter if not given by trigger'
scm:
- gerrit-trigger-scm
triggers:
- gerrit:
server-name: 'gerrit.onap.org'
trigger-on:
- patchset-created-event:
exclude-drafts: 'false'
exclude-trivial-rebase: 'false'
exclude-no-code-change: 'false'
- draft-published-event
- comment-added-contains-event:
comment-contains-value: 'recheck'
projects:
- project-compare-type: 'ANT'
project-pattern: 'oom'
branches:
- branch-compare-type: 'ANT'
branch-pattern: '**/{branch}'
file-paths:
- compare-type: 'ANT'
pattern: 'kubernetes/**/*.yaml'
- project-compare-type: 'ANT'
project-pattern: '*/oom'
branches:
- branch-compare-type: 'ANT'
branch-pattern: '**/{branch}'
file-paths:
- compare-type: 'ANT'
pattern: '**/*.yaml'
wrappers:
- timestamps
- timeout:
timeout: 720
fail: true
builders:
- shell: |
#!/bin/bash
set +e
set -x
rm -rf $WORKSPACE/archives
mkdir -p $WORKSPACE/archives
NEXUS_RELEASE_PREFIX="https://nexus3.onap.org/repository/docker.release/v2"
RELEASE_TAGS_PATH="/tmp/onap-docker-release"
err=0
# if no files changed, will scan all files
CHANGED_FILES=""
if [ $(git rev-parse HEAD) != $(git rev-parse origin/master) ]; then
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r HEAD)
fi
IMAGES_FILE=$WORKSPACE/archives/images.txt
rgrep --exclude-dir=pnda -n -E ':\s*onap/.*:.*' $CHANGED_FILES | awk '{{$1=$1}};1' | sort > $IMAGES_FILE
set +x
while read line; do
location=$(echo $line | cut -d: -f-2)
image_tag=$(echo $line | cut -d: -f3- | awk '{{$1=$1}};1' | cut -d' ' -f2)
image=$(echo $image_tag | cut -d : -f 1)
tag=$(echo $image_tag | cut -d : -f 2)
case $tag in
*STAGING*)
echo "[ERROR] $location: $image:$tag not released"
(( err++ ))
;;
*SNAPSHOT*)
echo "[ERROR] $location: $image:$tag not released"
(( err++ ))
;;
*latest*)
echo "[ERROR] $location: $image:$tag not released"
(( err++ ))
;;
*)
TAGS_FILE=$RELEASE_TAGS_PATH/$image/tags.txt
mkdir -p $RELEASE_TAGS_PATH/$image
touch $TAGS_FILE
grep -q "^$tag\$" $TAGS_FILE
if [ $? -ne 0 ]; then
# not found; download latest
curl -s $NEXUS_RELEASE_PREFIX/$image/tags/list | jq -r '.tags[]' > $TAGS_FILE 2> /dev/null
grep -q "^$tag\$" $TAGS_FILE
if [ $? -ne 0 ]; then
echo "[ERROR] $location: $image:$tag not released"
(( err++ ))
fi
fi
;;
esac
done < $IMAGES_FILE
echo $err unreleased images found.
exit $err
publishers:
- archive-logs
|