Fix Grabbing MC Version

This commit is contained in:
Zoe 2021-01-23 12:08:45 -06:00
parent 5969cc2120
commit 2fca0b09a8

3
Jenkinsfile vendored
View File

@ -71,6 +71,9 @@ pipeline {
sh '''
mkdir -p "./target"
./gradlew paperclip
basedir=$(pwd)
paperworkdir="$basedir/Paper/work"
mcver=$(cat "$paperworkdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
cp "yatopia-$mcver-paperclip.jar" "./target/yatopia-$mcver-paperclip-b$BUILD_NUMBER.jar"
'''
}