-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml_bak_20230817
41 lines (38 loc) · 1.53 KB
/
.gitlab-ci.yml_bak_20230817
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
stages:
- develop # develop branch
### develop ###
deploy_dev:
stage: develop
only:
- develop
before_script:
- export PATH=$PATH:/opt/gradle/gradle-7.6.1/bin
# - /mc/dvwebinarbatch/shellscript/dvwebinarbatch-startup.sh stop
# - sleep 5s
script:
- /mc/dvwebinarbatch/shellscript/dvwebinarbatch-startup.sh stop
- sleep 5s
- pwd
- gradle build --exclude-task test --stacktrace
- tar cvf /mc/dvwebinarbatch/dvwebinarbatch-back/dvwebinarbatch$(date +%Y%m%d%H%M%S).tar /mc/dvwebinarbatch/data/dvwebinarbatch/dvwebinar-batch.jar
- rm -rf /mc/dvwebinarbatch/data/dvwebinarbatch/dvwebinar-batch.jar
- cp ./build/libs/webinar_batch-1.0.0.jar /mc/dvwebinarbatch/data/dvwebinarbatch/dvwebinar-batch.jar
- find /mc/dvwebinarbatch/data/dvwebinarbatch -exec touch {} \;
- /mc/dvwebinarbatch/shellscript/dvwebinarbatch-startup.sh start
- sleep 5s
- exit 0
# - gradle :bootJar
# - tar cvf /mc/dvwㅇebinarbatch/dvwebinarbatch-back/dvwebinarbatch$(date +%Y%m%d%H%M%S).tar /mc/dvwebinarbatch/data/dvwebinarbatch/dvwebinar-batch.jar
# - sleep 3s
# - rm -rf /mc/dvwebinarbatch/data/dvwebinarbatch/dvwebinar-batch.jar
# - sleep 2s
# - cp /mc/jenkins/dvwebinarbatch/target/dvwebinar-batch.jar /mc/dvwebinarbatch/data/dvwebinarbatch/dvwebinar-batch.jar
# - sleep 5s
# - find /mc/dvwebinarbatch/data/dvwebinarbatch -exec touch {} \;
# - sleep 5s
# after_script:
# - /mc/dvwebinarbatch/shellscript/dvwebinarbatch-startup.sh start
# - sleep 5s
# - exit 0
tags:
- batch_dev