This commit is contained in:
Sebastien 2018-03-01 15:21:15 +01:00
parent ae0f63b55a
commit 3d92bf8324

View File

@ -5,9 +5,9 @@ data=$(curl -g "https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStabl
relativePath=$(grep -oPm1 "(?<=<relativePath>)[^<]+" <<< "$data")
jarFile=$(grep -oPm1 "(?<=<fileName>)[^<]+" <<< "$data")
echo ${BRANCH_NAME}
echo $1
if [[ $BRANCH_NAME=="master" ]]; then
if [[ $1="master" ]]; then
url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/lastStableBuild/artifact/"${relativePath}
else
url="https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle%20Devel/lastStableBuild/artifact/"${relativePath}