1
0
mirror of https://github.com/GeyserMC/GeyserOptionalPack.git synced 2025-12-19 14:59:14 +00:00

Jenkinsfile attempt 3

This commit is contained in:
Camotoy
2021-03-04 20:04:45 -05:00
parent e4f974d3a5
commit 059b4ee5e5

6
Jenkinsfile vendored
View File

@@ -8,11 +8,7 @@ pipeline {
steps {
sh 'wget https://launcher.mojang.com/v1/objects/37fd3c903861eeff3bc24b71eed48f828b5269c8/client.jar'
sh 'unzip client.jar -d extracted/'
sh "while read p; do"
sh " readarray -d , -t filesToCopy<<< \"$p\""
sh " mkdir -p filesToCopy[1]"
sh " cp filesToCopy[0] filesToCopy[1]"
sh "done <required_files.txt"
sh "while read p; do\nreadarray -d , -t filesToCopy<<< \"$p\"\nmkdir -p filesToCopy[1]\ncp filesToCopy[0] filesToCopy[1]\ndone <required_files.txt"
sh 'rm client.jar'
sh 'rm -r extracted'
sh 'zip GeyserOptionalPack.zip -r . -x ".*" Jenkinsfile'