File tree 1 file changed +6
-8
lines changed
samples/kubernetes/end2end/demo-domains/domainBuilder
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 5
5
set -e # Exit immediately if a command exits with a non-zero status.
6
6
7
7
WDT_VERSION=0.24
8
- MONITORING_EXPORTER_VERSION=1.1.0
9
8
10
9
CUR_DIR=" $( dirname " $( readlink -f " $0 " ) " ) " # get the absolute path of this file's folder
11
10
PRJ_ROOT=${CUR_DIR} /../../../../..
@@ -19,14 +18,13 @@ function createArchive() {
19
18
cd test-webapp && mvn clean install && cd ..
20
19
cp test-webapp/target/testwebapp.war ${TMP_DIR} /archive/wlsdeploy/applications/testwebapp.war
21
20
22
- echo " Download the metrics exporter webapp from ://github.com/oracle/weblogic-monitoring-exporter/releases/download/v${MONITORING_EXPORTER_VERSION} /get${MONITORING_EXPORTER_VERSION} .sh..."
23
-
21
+ echo ' Build the metrics exporter...'
24
22
cd $PRJ_ROOT
25
- wget https://github.com/oracle/weblogic-monitoring-exporter/releases/download/v ${MONITORING_EXPORTER_VERSION} /get ${MONITORING_EXPORTER_VERSION} .sh
26
- bash get ${MONITORING_EXPORTER_VERSION} .sh ${CUR_DIR} /../../dashboard/exporter-config.yaml
27
-
23
+ mvn clean install
24
+ cd webapp
25
+ mvn clean package -Dconfiguration= ${CUR_DIR} /../../dashboard/exporter-config.yaml
28
26
cd $CUR_DIR
29
- cp $PRJ_ROOT /wls-exporter.war \
27
+ cp $PRJ_ROOT /webapp/target/ wls-exporter.war \
30
28
${TMP_DIR} /archive/wlsdeploy/applications/wls-exporter.war
31
29
32
30
echo ' Build the WDT archive...'
@@ -36,7 +34,7 @@ function createArchive() {
36
34
37
35
function cleanTmpDir() {
38
36
rm -rf ${CUR_DIR} /test-webapp/target
39
- rm -rf ${PRJ_ROOT} /wls-exporter.war
37
+ rm -rf ${PRJ_ROOT} /webapp/target
40
38
rm -rf ${TMP_DIR}
41
39
}
42
40
You can’t perform that action at this time.
0 commit comments