test branchname

This commit is contained in:
Sebastien 2018-03-01 13:21:42 +01:00
parent fc6ee7bf2d
commit d3e2804a4d

View File

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