Ok my bad
This commit is contained in:
parent
455a6e0cef
commit
5b8cc93bc5
@ -3,17 +3,17 @@
|
||||
echo "Branch: "$1
|
||||
if [[ $1 = "master" ]]
|
||||
then
|
||||
base_url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStableBuild/artifact/"
|
||||
base_url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStableBuild"
|
||||
else
|
||||
base_url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle%20Devel/lastStableBuild/artifact/"
|
||||
base_url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle%20Devel/lastStableBuild/"
|
||||
fi
|
||||
|
||||
data=$(curl -s -g "https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStableBuild/api/xml?xpath=/freeStyleBuild/artifact&wrapper=artifacts")
|
||||
data=$(curl -s -g ${base_url}"/api/xml?xpath=/freeStyleBuild/artifact&wrapper=artifacts")
|
||||
relativePath=$(grep -oPm1 "(?<=<relativePath>)[^<]+" <<< "$data")
|
||||
jarFile=$(grep -oPm1 "(?<=<fileName>)[^<]+" <<< "$data")
|
||||
|
||||
|
||||
|
||||
wget ${base_url}${relativePath} -O bot.jar -q
|
||||
wget ${base_url}"/artifact/"${relativePath} -O bot.jar -q
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user