|
1 | | -// Copyright (c) 2021, 2022, Oracle and/or its affiliates. |
| 1 | +// Copyright (c) 2021, 2023, Oracle and/or its affiliates. |
2 | 2 | // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. |
3 | 3 |
|
4 | 4 | package oracle.weblogic.kubernetes.utils; |
@@ -111,15 +111,13 @@ public class MonitoringUtils { |
111 | 111 | public static void downloadMonitoringExporterApp(String configFile, String applicationDir) { |
112 | 112 | //version of wls-exporter.war published in https://github.com/oracle/weblogic-monitoring-exporter/releases/ |
113 | 113 | String monitoringExporterRelease = MONITORING_EXPORTER_WEBAPP_VERSION; |
114 | | - String monitoringExporterWebAppScriptVersion = monitoringExporterRelease.substring(0, |
115 | | - monitoringExporterRelease.length() - 2); |
116 | 114 | String curlDownloadCmd = String.format("cd %s && " |
117 | | - + "curl -O -L -k https://github.com/oracle/weblogic-monitoring-exporter/releases/download/v%s/get%s.sh", |
| 115 | + + "curl -O -L -k https://github.com/oracle/weblogic-monitoring-exporter/releases/download/v%s/get_v%s.sh", |
118 | 116 | applicationDir, |
119 | 117 | monitoringExporterRelease, |
120 | | - monitoringExporterWebAppScriptVersion); |
| 118 | + monitoringExporterRelease); |
121 | 119 | String monitoringExporterBuildFile = String.format( |
122 | | - "%s/get%s.sh", applicationDir, monitoringExporterWebAppScriptVersion); |
| 120 | + "%s/get_v%s.sh", applicationDir, monitoringExporterRelease); |
123 | 121 | logger.info("execute command a monitoring exporter curl command {0} ", curlDownloadCmd); |
124 | 122 | assertTrue(Command |
125 | 123 | .withParams(new CommandParams() |
|
0 commit comments