forked from crosscloudci/ci-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrigger_pipelines
executable file
·60 lines (48 loc) · 1.96 KB
/
trigger_pipelines
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
#!/bin/bash
if [ -z "$DASHBOARD_API_HOST_PORT" ] ; then
DASHBOARD_API_HOST_PORT=masterapi.cncf.ci
fi
#DASHBOARD_API_HOST_PORT=stagingapi.cncf.ci
echo "Using API server: $DASHBOARD_API_HOST_PORT"
echo -e "\nCoreDNS master"
curl -X POST \
-F token=847158173aa6d627d42371c4af9511 \
-F ref=ci-master \
-F "variables[DASHBOARD_API_HOST_PORT]=$DASHBOARD_API_HOST_PORT" \
https://gitlab.dev.cncf.ci/api/v4/projects/9/trigger/pipeline
echo -e "\nCoreDNS stable"
curl -X POST \
-F token=847158173aa6d627d42371c4af9511 \
-F ref=ci-v008 \
-F "variables[DASHBOARD_API_HOST_PORT]=$DASHBOARD_API_HOST_PORT" \
https://gitlab.dev.cncf.ci/api/v4/projects/9/trigger/pipeline
echo -e "\nPrometheus master"
curl -X POST \
-F token=9ae6c57804133e3ccadea02608bef8 \
-F ref=ci-master \
-F "variables[DASHBOARD_API_HOST_PORT]=$DASHBOARD_API_HOST_PORT" \
https://gitlab.dev.cncf.ci/api/v4/projects/20/trigger/pipeline
echo -e "\nPrometheus stable"
curl -X POST \
-F token=9ae6c57804133e3ccadea02608bef8 \
-F ref=ci-v1.7.1 \
-F "variables[DASHBOARD_API_HOST_PORT]=$DASHBOARD_API_HOST_PORT" \
https://gitlab.dev.cncf.ci/api/v4/projects/20/trigger/pipeline
echo -e "\nKubernetes master"
curl -X POST \
-F token=6e00343d071643c518e01bc69d9021 \
-F ref=ci-master \
-F "variables[DASHBOARD_API_HOST_PORT]=$DASHBOARD_API_HOST_PORT" \
https://gitlab.dev.cncf.ci/api/v4/projects/14/trigger/pipeline
# echo -e "\nKubernetes stable"
# curl -X POST \
# -F token=6e00343d071643c518e01bc69d9021 \
# -F ref=ci-v1.6.6 \
# -F "variables[DASHBOARD_API_HOST_PORT]=$DASHBOARD_API_HOST_PORT" \
# https://gitlab.dev.cncf.ci/api/v4/projects/14/trigger/pipeline
echo -e "\nKubernetes stable"
curl -X POST \
-F token=6e00343d071643c518e01bc69d9021 \
-F ref=ci-v1.8.2 \
-F "variables[DASHBOARD_API_HOST_PORT]=$DASHBOARD_API_HOST_PORT" \
https://gitlab.dev.cncf.ci/api/v4/projects/14/trigger/pipeline