001_CI.sh 816 Bytes
Newer Older
据说甜蜜呢 committed
1 2 3 4 5
#!/bin/bash

set -e

# Import external functions
据说甜蜜呢 committed
6 7
chmod +x ./devops/PipeLines/Functions.deploy.sh
source ./devops/PipeLines/Functions.deploy.sh
据说甜蜜呢 committed
8

9 10 11
# global variable
ReleaseEnvironmentOf Environment

据说甜蜜呢 committed
12
GetAppName appName
据说甜蜜呢 committed
13
echo ""
据说甜蜜呢 committed
14
echo "[${Environment}]Continuous integration for ${appName} starting..."
据说甜蜜呢 committed
15

据说甜蜜呢 committed
16 17
echo ""
echo "${appName} building..."
18
GetSolutionName solutionName
据说甜蜜呢 committed
19 20
dotnet build ${solutionName}	 

21
GetRegistryHost RegistryHost
22
for servicePrefix in `ls ./src/Services|xargs -d '/'`
据说甜蜜呢 committed
23
do
据说甜蜜呢 committed
24 25
    echo ""
	echo "Tips: ${servicePrefix} begin integrating to image registry!!!"
据说甜蜜呢 committed
26 27
	GetServiceName ${servicePrefix} serviceName
	GetServiceCsProjFile ${servicePrefix} ${serviceName} serviceCsProjFile
据说甜蜜呢 committed
28
	CI ${serviceName} ${serviceCsProjFile}
据说甜蜜呢 committed
29 30 31
done

echo ""
据说甜蜜呢 committed
32
echo "[${Environment}]Continuous integration for ${appName} has been successful."