Update Canyon CI link to Glass Launcher (#2109)

This commit is contained in:
StealthCT 2023-04-30 16:50:31 +01:00 committed by GitHub
parent 828137fcdb
commit d4165cd9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -6,14 +6,15 @@ IFS=$'\n\t'
. "${SCRIPTS:-/}start-utils"
isDebugging && set -x
: "${CANYON_BUILD:=final}"
: "${CANYON_BUILD:=lastSuccessfulBuild}"
if [ "${VERSION}" != "b1.7.3" ]; then
log "ERROR: Canyon server type only supports VERSION=b1.7.3"
exit 1
fi
canyonJob="https://ci.velocitypowered.com/job/Canyon"
canyonJob="https://jenkins.glass-launcher.net/job/Canyon"
githubUrl="https://github.com/KoboDev/SupplyAndDemand/releases/download"
buildRelPath=$(
curl -fsSL "${canyonJob}/${CANYON_BUILD}/api/json" |
@ -33,16 +34,17 @@ else
fi
if [ ! -f "$SERVER" ]; then
# If CANYON_BUILD is final, then download from GitHub
# If CANYON_BUILD is old artifact, then download from GitHub
if [ "${CANYON_BUILD}" = "final" ]; then
downloadUrl="https://github.com/KoboDev/SupplyAndDemand/releases/download/finalcanyon/canyon-server.jar"
downloadUrl="${githubUrl}/finalcanyon/canyon-server.jar"
log "Downloading final Canyon build from $downloadUrl ..."
elif [ "${CANYON_BUILD}" = "6" ]; then
downloadUrl="https://github.com/KoboDev/SupplyAndDemand/releases/download/CanyonRelease/Canyon-Build-6.jar"
downloadUrl="${githubUrl}/CanyonRelease/Canyon-Build-6.jar"
log "Downloading Canyon build 6 from $downloadUrl ..."
elif [ "${CANYON_BUILD}" = "26" ]; then
downloadUrl="https://github.com/KoboDev/SupplyAndDemand/releases/download/CanyonRelease/canyon-build-26.jar"
downloadUrl="${githubUrl}/CanyonRelease/canyon-build-26.jar"
log "Downloading Canyon build 26 from $downloadUrl ..."
# Builds greater than 32 are on Jenkins
else
downloadUrl="${canyonJob}/${CANYON_BUILD}/artifact/${buildRelPath}"
log "Downloading Canyon build ${buildNumber} from $downloadUrl ..."