mirror of
https://github.com/GeyserMC/GeyserOptionalPack.git
synced 2025-12-19 14:59:14 +00:00
Jenkinsfile attempt 4
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -6,12 +6,8 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'wget https://launcher.mojang.com/v1/objects/37fd3c903861eeff3bc24b71eed48f828b5269c8/client.jar'
|
sh './copy_java_files_to_pack.sh'
|
||||||
sh 'unzip client.jar -d extracted/'
|
sh 'zip GeyserOptionalPack.zip -r . -x ".*" Jenkinsfile required_files.txt copy_java_files_to_pack.sh'
|
||||||
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'
|
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
|
|||||||
9
copy_java_files_to_pack.sh
Executable file
9
copy_java_files_to_pack.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
wget https://launcher.mojang.com/v1/objects/37fd3c903861eeff3bc24b71eed48f828b5269c8/client.jar
|
||||||
|
unzip client.jar -d extracted/
|
||||||
|
while read p; do
|
||||||
|
readarray -d , -t filesToCopy<<< "$p"
|
||||||
|
mkdir -p filesToCopy[1]
|
||||||
|
cp filesToCopy[0] filesToCopy[1]
|
||||||
|
done <required_files.txt
|
||||||
|
rm client.jar
|
||||||
|
rm -r extracted
|
||||||
Reference in New Issue
Block a user