Update 'build-minecraft.jenkins'
This commit is contained in:
parent
3680ef8a6d
commit
03a27ca659
@ -70,9 +70,9 @@ RUN sed -i -r -e 's/v3.14\\/community/edge\\/community/' /etc/apk/repositories &
|
|||||||
apk add --no-cache ${alpineJavaPackage} curl && \\
|
apk add --no-cache ${alpineJavaPackage} curl && \\
|
||||||
addgroup -S -g 1000 minecraft && \\
|
addgroup -S -g 1000 minecraft && \\
|
||||||
adduser -S minecraft -G minecraft -h /minecraft -u 1000 && \\
|
adduser -S minecraft -G minecraft -h /minecraft -u 1000 && \\
|
||||||
paperBuild=$(curl --silent --location --fail https://papermc.io/api/v2/projects/paper/versions/${paperVersion} | jq '.builds | max') && \\
|
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') && \\
|
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}" && \\
|
paperDownload="https://papermc.io/api/v2/projects/paper/versions/${paperVersion}/builds/\${paperBuild}/downloads/\${paperFile}" && \\
|
||||||
curl --location --fail --silent ${paperDownload} -o /minecraft/paper-mc.jar && \\
|
curl --location --fail --silent ${paperDownload} -o /minecraft/paper-mc.jar && \\
|
||||||
mkdir /minecraft/data && \\
|
mkdir /minecraft/data && \\
|
||||||
mkdir /minecraft/html && \\
|
mkdir /minecraft/html && \\
|
||||||
|
Reference in New Issue
Block a user