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:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -8,11 +8,7 @@ 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\nreadarray -d , -t filesToCopy<<< \"$p\"\nmkdir -p filesToCopy[1]\ncp filesToCopy[0] filesToCopy[1]\ndone <required_files.txt"
|
||||||
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 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