-
Notifications
You must be signed in to change notification settings - Fork 2
/
process-artifacts.sh
96 lines (86 loc) · 3.64 KB
/
process-artifacts.sh
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
#!/bin/bash
cd /build-artifacts
./docker-build-openncp.sh
./docker-build-portal.sh
cd ..
# Check for openncp-ws-server.war
if [ -f build-artifacts/artifacts/openncp-ws-server.war ]; then
echo "openncp-ws-server.war exists"
if [ ! -d openncp-server/webapps ]; then
mkdir openncp-server/webapps
fi
cp -f build-artifacts/artifacts/openncp-ws-server.war openncp-server/webapps/
else
echo "openncp-ws-server.war does not exist, check build-artifacts/docker-build-openncp.bat"
fi
# Check for openncp-configuration-utility.jar
if [ -f build-artifacts/artifacts/openncp-configuration-utility.jar ]; then
echo "openncp-configuration-utility.jar exists"
cp -f build-artifacts/artifacts/openncp-configuration-utility.jar openncp-configuration-utility/
else
echo "openncp-configuration-utility.jar does not exist, check build-artifacts/docker-build-openncp.bat"
fi
# Check for openncp-client-connector.war
if [ -f build-artifacts/artifacts/openncp-client-connector.war ]; then
echo "openncp-client-connector.war exists"
if [ ! -d openncp-client/webapps ]; then
mkdir openncp-client/webapps
fi
cp -f build-artifacts/artifacts/openncp-client-connector.war openncp-client/webapps/
else
echo "openncp-client-connector.war does not exist, check build-artifacts/docker-build-openncp.bat"
fi
# Check for ehealth-portal-backend.war
if [ -f build-artifacts/artifacts/ehealth-portal-backend.war ]; then
echo "ehealth-portal-backend.war exists"
if [ ! -d ehealth-portal-backend/webapps ]; then
mkdir ehealth-portal-backend/webapps
fi
cp -f build-artifacts/artifacts/ehealth-portal-backend.war ehealth-portal-backend/webapps/
else
echo "ehealth-portal-backend.war does not exist, check build-artifacts/docker-build-portal.bat"
fi
# Check for ehealth-portal folder
if [ -d build-artifacts/artifacts/ehealth-portal ]; then
echo "ehealth-portal folder exists"
cp -rf build-artifacts/artifacts/ehealth-portal ehealth-portal-frontend/ehealth-portal/
else
echo "ehealth-portal does not exist, check build-artifacts/docker-build-portal.bat"
fi
# Check for openncp-trc-sts.war
if [ -f build-artifacts/artifacts/openncp-trc-sts.war ]; then
echo "openncp-trc-sts.war exists"
if [ ! -d openncp-trc-sts/webapps ]; then
mkdir openncp-trc-sts/webapps
fi
cp -f build-artifacts/artifacts/openncp-trc-sts.war openncp-trc-sts/webapps/
else
echo "openncp-trc-sts.war does not exist, check build-artifacts/docker-build-openncp.bat"
fi
# Check for openncp-gateway-backend.war
if [ -f build-artifacts/artifacts/openncp-gateway-backend.war ]; then
echo "openncp-gateway-backend.war exists"
if [ ! -d openncp-gateway-backend/webapps ]; then
mkdir openncp-gateway-backend/webapps
fi
cp -f build-artifacts/artifacts/openncp-gateway-backend.war openncp-gateway-backend/webapps/
else
echo "openncp-gateway-backend.war does not exist, check build-artifacts/docker-build-openncp.bat"
fi
# Check for openncp-gateway folder
if [ -d build-artifacts/artifacts/openncp-gateway ]; then
echo "openncp-gateway folder exists"
cp -rf build-artifacts/artifacts/openncp-gateway openncp-gateway-frontend/openncp-gateway/
else
echo "openncp-gateway does not exist, check build-artifacts/docker-build-openncp.bat"
fi
# Check for openatna-web.war
if [ -f build-artifacts/artifacts/openatna-web.war ]; then
echo "openatna-web.war exists"
if [ ! -d openncp-openatna/webapps ]; then
mkdir openncp-openatna/webapps
fi
cp -f build-artifacts/artifacts/openatna-web.war openncp-openatna/webapps/
else
echo "openatna-web.war does not exist, check build-artifacts/docker-build-openncp.bat"
fi