Skip to content

mdminhaj88/jfrog-installation-ubuntu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

jfrog-installation-ubuntu

Shell script to pull latest artifact

#!/bin/bash

# Artifactory location
ip=$1
server=ip/artifactory
repo=$2

# Maven artifact location
name=$3
artifact=$4/$name
path=$server/$repo/$artifact
version=$(curl -s $path/maven-metadata.xml | grep latest | sed "s/.*<latest>\([^<]*\)<\/latest>.*/\1/")
build=$(curl -s $path/$version/maven-metadata.xml | grep '<value>' | head -1 | sed "s/.*<value>\([^<]*\)<\/value>.*/\1/")
war=$name-$build.war
url=$path/$version/$war

# Download
echo $url
wget $url
sh latest.sh http://3.109.184.148:8081 maven MyWebApp com/mkyong

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%