File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 23
23
24
24
# deletes the temp directory
25
25
function cleanup {
26
- rm -rf " $WORK_DIR "
26
+ rm -rf " $WORK_DIR "
27
27
}
28
28
29
29
# register the cleanup function to be called on the EXIT signal
30
30
trap cleanup EXIT
31
31
32
32
cd " $WORK_DIR " || exit
33
33
34
- src_file=jmx_prometheus-$VERSION -src.tar.gz
35
-
36
34
# JMX Exporter does not currently publish signatures or SBOMs (as of 2023-07-24, latest version at this point 0.19.0)
37
35
echo " Downloading JMX Exporter"
38
- # JMX Exporter provides no offficial source tarballs, download from Git
39
- git clone https://github.com/prometheus/jmx_exporter " jmx_prometheus-${VERSION} " " --branch=${VERSION} " --depth=1
40
-
41
- echo " Archiving JMX Exporter"
42
- git -C " jmx_prometheus-${VERSION} " archive " ${VERSION} " --format=tar.gz --prefix=" jmx_prometheus-${VERSION} -src/" > " ${src_file} "
43
- sha256sum " ${src_file} " | cut --delimiter=' ' --field=1 > " ${src_file} .sha256"
36
+ curl --fail -LOs " https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/$VERSION /jmx_prometheus_javaagent-$VERSION .jar"
44
37
45
38
echo " Uploading to Nexus"
46
- curl --fail -u " $NEXUS_USER :$NEXUS_PASSWORD " --upload-file " ${src_file} " ' https://repo.stackable.tech/repository/packages/jmx-exporter/'
47
- curl --fail -u " $NEXUS_USER :$NEXUS_PASSWORD " --upload-file " ${src_file} .sha256" ' https://repo.stackable.tech/repository/packages/jmx-exporter/'
39
+ curl --fail -u " $NEXUS_USER :$NEXUS_PASSWORD " --upload-file " jmx_prometheus_javaagent-$VERSION .jar" ' https://repo.stackable.tech/repository/packages/jmx-exporter/'
48
40
49
41
echo " Successfully uploaded new version of JMX Exporter ($VERSION ) to Nexus"
50
42
echo " https://repo.stackable.tech/service/rest/repository/browse/packages/jmx-exporter/"
You can’t perform that action at this time.
0 commit comments