xiatian 5 år sedan
förälder
incheckning
610b77c2df
2 ändrade filer med 22 tillägg och 0 borttagningar
  1. 4 0
      jenkins-prod.sh
  2. 18 0
      jenkins-test.sh

+ 4 - 0
jenkins-prod.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+pwd
+
+cp examcloud-core-questions-starter/target/examcloud-core-questions-distribution.zip ~/packages

+ 18 - 0
jenkins-test.sh

@@ -0,0 +1,18 @@
+#!/bin/bash
+pwd
+
+rm -rf ~/project/examcloud/examcloud-core-questions-distribution.zip
+rm -rf ~/project/examcloud/examcloud-core-questions/lib/
+
+cp examcloud-core-questions-starter/target/examcloud-core-questions-distribution.zip ~/project/examcloud/
+
+cd  ~/project/examcloud/
+unzip -o examcloud-core-questions-distribution.zip
+
+cd examcloud-core-questions
+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 jenkins