File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 2323
2424#  deletes the temp directory
2525function  cleanup  {
26-      rm -rf " $WORK_DIR " 
26+   rm -rf " $WORK_DIR " 
2727}
2828
2929#  register the cleanup function to be called on the EXIT signal
3030trap  cleanup EXIT
3131
3232cd  " $WORK_DIR " ||  exit 
3333
34- src_file=jmx_prometheus-$VERSION -src.tar.gz
35- 
3634#  JMX Exporter does not currently publish signatures or SBOMs (as of 2023-07-24, latest version at this point 0.19.0)
3735echo  " 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} " 
40- 
41- echo  " Archiving JMX Exporter" 
42- git -C " jmx_prometheus-${VERSION} " " ${VERSION} " " jmx_prometheus-${VERSION} -src/" >  " ${src_file} " 
43- sha256sum " ${src_file} " |  cut --delimiter='  ' >  " ${src_file} .sha256" 
36+ curl --fail -LOs " https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/$VERSION /jmx_prometheus_javaagent-$VERSION .jar" 
4437
4538echo  " Uploading to Nexus" 
46- curl --fail -u " $NEXUS_USER :$NEXUS_PASSWORD " " ${src_file} " ' https://repo.stackable.tech/repository/packages/jmx-exporter/' 
47- curl --fail -u " $NEXUS_USER :$NEXUS_PASSWORD " " ${src_file} .sha256" ' https://repo.stackable.tech/repository/packages/jmx-exporter/' 
39+ curl --fail -u " $NEXUS_USER :$NEXUS_PASSWORD " " jmx_prometheus_javaagent-$VERSION .jar" ' https://repo.stackable.tech/repository/packages/jmx-exporter/' 
4840
4941echo  " Successfully uploaded new version of JMX Exporter ($VERSION ) to Nexus" 
5042echo  " https://repo.stackable.tech/service/rest/repository/browse/packages/jmx-exporter/" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments