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

Jenkinsfile attempt 2

This commit is contained in:
Camotoy
2021-03-04 20:02:37 -05:00
parent af01317850
commit e4f974d3a5

10
Jenkinsfile vendored
View File

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