wangwei 5 years ago
parent
commit
44d89ca7c4
1 changed files with 18 additions and 0 deletions
  1. 18 0
      jenkins-dev.sh

+ 18 - 0
jenkins-dev.sh

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