Selaa lähdekoodia

add jenkins.sh

deason 6 vuotta sitten
vanhempi
commit
f1c48b18fb
3 muutettua tiedostoa jossa 20 lisäystä ja 2 poistoa
  1. 18 0
      shell/jenkins.sh
  2. 1 1
      shell/start.args
  3. 1 1
      src/main/resources/application.properties

+ 18 - 0
shell/jenkins.sh

@@ -0,0 +1,18 @@
+#!/bin/bash
+pwd
+
+rm -rf /home/qmth/project/examcloud/examcloud-app-api-distribution.zip
+rm -rf /home/qmth/project/examcloud/examcloud-app-api/lib
+
+cp examcloud-app-api-starter/target/examcloud-app-api-distribution.zip ~/project/examcloud/
+
+cd  ~/project/examcloud/
+unzip -o -q examcloud-app-api-distribution.zip
+
+cd examcloud-app-api
+echo "--spring.profiles.active=test --examcloud.startup.configCenterHost=localhost" > start.args
+echo "-server -Xms512m -Xmx512m  -XX:-UseGCOverheadLimit" > start.vmoptions
+
+bash stop.sh
+BUILD_ID=DONTKILLME
+bash start.sh 110

+ 1 - 1
shell/start.args

@@ -1 +1 @@
---spring.profiles.active=dev
+--spring.profiles.active=test

+ 1 - 1
src/main/resources/application.properties

@@ -1,4 +1,4 @@
-spring.profiles.active=dev
+spring.profiles.active=test
 
 examcloud.startup.startupCode=8090
 examcloud.startup.configCenterHost=config-host