develop
-- DHP
false
ylhealth
1
3
-1
-1
2
https://cm.ylhealth.org/gitlab/ym/CRM_BOOKING.git
3485e854-8389-40e8-8c86-b94e94e91904
*/develop
false
SIT_130
false
false
false
false
0 7,13,17 * * *
false
org.ylhealth.ym.hrb.backend
CHMB
clean package -Dmaven.test.skip=true -DskipTests=true
spring-boot:run
true
false
true
false
true
true
true
false
false
-1
false
false
true
$RD_Group $QA_Group
false
false
true
false
false
false
false
true
true
true
false
true
false
true
false
false
false
NONE
false
false
false
VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M")
version=$(echo $GIT_BRANCH | cut -d'/' -f 3)
sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html
sudo systemctl stop CHMB
chmb=/opt/CHMB
tempdir=$(mktemp -d)
7za x target/CHMB-pack.zip -o"${tempdir}"
rm -rf ${chmb}/lib/*
rm -rf ${chmb}/sample/*
rm -rf ${chmb}/template/*
mv -f ${tempdir}/CHMB/lib/* "${chmb}/lib"
mv -f ${tempdir}/CHMB/sample/* "${chmb}/sample"
mv -f ${tempdir}/CHMB/template/* "${chmb}/template"
rm -rf "${tempdir}"
sudo systemctl start CHMB
SUCCESS
0
BLUE
true