File tree 3 files changed +41
-2
lines changed
3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Copyright (c) 2021, Oracle and/or its affiliates.
2
+ # Copyright (c) 2021, 2022, Oracle and/or its affiliates.
3
3
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
4
4
5
- curl -L -O https://github.com/oracle/weblogic-monitoring-exporter/releases/latest/ download/wls-exporter.war
5
+ curl -L -O https://github.com/oracle/weblogic-monitoring-exporter/releases/download/v ${version} /wls-exporter.war
6
6
7
7
if [ ! -z " $1 " ]; then
8
8
tmp_dir=$( mktemp -d -t ci-XXXXXXXXXX)
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Copyright (c) 2021, 2022, Oracle and/or its affiliates.
3
+ # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
4
+
5
+ curl -L -O https://github.com/oracle/weblogic-monitoring-exporter/releases/download/v${version} /wls-exporter.war
6
+
7
+ if [ ! -z " $1 " ]; then
8
+ tmp_dir=$( mktemp -d -t ci-XXXXXXXXXX)
9
+ echo " created $tmp_dir "
10
+ cp $1 $tmp_dir /config.yml
11
+ warDir=$PWD
12
+ pushd $tmp_dir
13
+ echo " in temp dir"
14
+ zip $warDir /wls-exporter.war config.yml
15
+ popd
16
+ # rm -rf $tmp_dir
17
+ fi
Original file line number Diff line number Diff line change 166
166
<groupId >org.apache.maven.plugins</groupId >
167
167
<artifactId >maven-resources-plugin</artifactId >
168
168
<version >${maven-resources-plugin-version} </version >
169
+ <executions >
170
+ <execution >
171
+ <id >copy-resources</id >
172
+ <phase >validate</phase >
173
+ <goals >
174
+ <goal >copy-resources</goal >
175
+ </goals >
176
+ <configuration >
177
+ <outputDirectory >${basedir} /target/release-artifacts</outputDirectory >
178
+ <resources >
179
+ <resource >
180
+ <directory >${basedir} </directory >
181
+ <includes >
182
+ <include >get2.0.sh</include >
183
+ <include >get2.1.sh</include >
184
+ </includes >
185
+ <filtering >true</filtering >
186
+ </resource >
187
+ </resources >
188
+ </configuration >
189
+ </execution >
190
+ </executions >
169
191
</plugin >
170
192
171
193
<plugin >
You can’t perform that action at this time.
0 commit comments