This commit is contained in:
Hyatt 2022-03-31 07:06:48 -05:00
parent 9df14c6fd7
commit 6f92a193fa
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -77,7 +77,7 @@ CMD ["../paper-mc.jar"]
paperDownload = sh (
script: """
paperBuild=\$(curl --silent --location --fail https://nexus.c.test-chamber-13.lan/repository/paper-io/api/v2/projects/paper/versions/${paperVersion} | jq '.builds | max')
paperFile=\$(curl --silent --location --fail https://nexus.c.test-chamber-13.lan/repository/paper-io/api/v2/projects/paper/versions/${paperVersion}/builds/\${paperBuild} | jq '.downloads.application.name')
paperFile=\$(curl --silent --location --fail https://nexus.c.test-chamber-13.lan/repository/paper-io/api/v2/projects/paper/versions/${paperVersion}/builds/\${paperBuild} | jq -r '.downloads.application.name')
echo https://nexus.c.test-chamber-13.lan/repository/paper-io/api/v2/projects/paper/versions/${paperVersion}/builds/\${paperBuild}/downloads/\${paperFile}
""",
returnStdout: true