xiatian 5 lat temu
rodzic
commit
bc5b705b32
3 zmienionych plików z 41 dodań i 0 usunięć
  1. 19 0
      jenkins-dev.sh
  2. 4 0
      jenkins-prod.sh
  3. 18 0
      jenkins-test.sh

+ 19 - 0
jenkins-dev.sh

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

+ 4 - 0
jenkins-prod.sh

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

+ 18 - 0
jenkins-test.sh

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