mirror of
https://github.com/GeyserMC/GeyserOptionalPack.git
synced 2025-12-21 07:49:27 +00:00
Jenkinsfile attempt 2
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -8,11 +8,11 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'wget https://launcher.mojang.com/v1/objects/37fd3c903861eeff3bc24b71eed48f828b5269c8/client.jar'
|
sh 'wget https://launcher.mojang.com/v1/objects/37fd3c903861eeff3bc24b71eed48f828b5269c8/client.jar'
|
||||||
sh 'unzip client.jar -d extracted/'
|
sh 'unzip client.jar -d extracted/'
|
||||||
sh "while read p; do
|
sh "while read p; do"
|
||||||
readarray -d , -t filesToCopy<<< \"$p\"
|
sh " readarray -d , -t filesToCopy<<< \"$p\""
|
||||||
mkdir -p filesToCopy[1]
|
sh " mkdir -p filesToCopy[1]"
|
||||||
cp filesToCopy[0] filesToCopy[1]
|
sh " cp filesToCopy[0] filesToCopy[1]"
|
||||||
done <required_files.txt"
|
sh "done <required_files.txt"
|
||||||
sh 'rm client.jar'
|
sh 'rm client.jar'
|
||||||
sh 'rm -r extracted'
|
sh 'rm -r extracted'
|
||||||
sh 'zip GeyserOptionalPack.zip -r . -x ".*" Jenkinsfile'
|
sh 'zip GeyserOptionalPack.zip -r . -x ".*" Jenkinsfile'
|
||||||
|
|||||||
Reference in New Issue
Block a user