Update 'build-minecraft.jenkins'
This commit is contained in:
parent
afe1f2ac88
commit
3680ef8a6d
@ -12,7 +12,7 @@ def baseImageTag = "latest"
|
||||
def alpineJavaPackage = "openjdk17"
|
||||
|
||||
// PaperMC URL
|
||||
def paperMCDownload = "https://papermc.io/api/v2/projects/paper/versions/1.17.1/builds/388/downloads/paper-1.17.1-388.jar"
|
||||
def paperVersion = "1.17.1"
|
||||
|
||||
// Minecraft Configuration
|
||||
def memoryMin = "1g"
|
||||
@ -70,7 +70,10 @@ RUN sed -i -r -e 's/v3.14\\/community/edge\\/community/' /etc/apk/repositories &
|
||||
apk add --no-cache ${alpineJavaPackage} curl && \\
|
||||
addgroup -S -g 1000 minecraft && \\
|
||||
adduser -S minecraft -G minecraft -h /minecraft -u 1000 && \\
|
||||
curl -Ls "${paperMCDownload}" -o /minecraft/paper-mc.jar && \\
|
||||
paperBuild=$(curl --silent --location --fail https://papermc.io/api/v2/projects/paper/versions/${paperVersion} | jq '.builds | max') && \\
|
||||
paperFile=$(curl --silent --location --fail https://papermc.io/api/v2/projects/paper/versions/${paperVersion}/builds/${paperBuild} | jq '.downloads.application.name') && \\
|
||||
paperDownload="https://papermc.io/api/v2/projects/paper/versions/${paperVersion}/builds/${paperBuild}/downloads/${paperFile}" && \\
|
||||
curl --location --fail --silent ${paperDownload} -o /minecraft/paper-mc.jar && \\
|
||||
mkdir /minecraft/data && \\
|
||||
mkdir /minecraft/html && \\
|
||||
chown -R minecraft:minecraft /minecraft
|
||||
|
Reference in New Issue
Block a user