Skip to content
This repository was archived by the owner on Jun 19, 2021. It is now read-only.

Commit 719bb8a

Browse files
committed
yatoclip on jenkins
1 parent fa1bc38 commit 719bb8a

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Jenkinsfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pipeline {
1818
sh 'rm -rf ./Paper/Paper-API ./Paper/Paper-Server'
1919

2020
// sh 'mv ./Paper/work/Minecraft ./ || true'
21-
sh 'rm -fr ./Paper/work/*'
21+
// sh 'rm -fr ./Paper/work/*'
2222
// sh 'mv ./Minecraft ./Paper/work/ || true'
2323

2424

@@ -70,21 +70,12 @@ pipeline {
7070
) {
7171
withCredentials([usernamePassword(credentialsId: 'jenkins-deploy', usernameVariable: 'ORG_GRADLE_PROJECT_mavenUsername', passwordVariable: 'ORG_GRADLE_PROJECT_mavenPassword')]) {
7272
sh '''
73-
./gradlew build publish
73+
./gradlew build publish yatoclip
7474
mkdir -p "./target"
75-
basedir=$(pwd)
7675
paperworkdir="$basedir/Paper/work"
7776
mcver=$(cat "$paperworkdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
78-
79-
patchedJarPath=$(find "$basedir/Yatopia-Server/build/libs/" -type f -name "*.jar" | grep -v '\\-sources.jar$')
8077
81-
vanillaJarPath="$paperworkdir/Minecraft/$mcver/$mcver.jar"
82-
83-
cd "$paperworkdir/Paperclip"
84-
mvn -T 2C clean package -Dmcver="$mcver" -Dpaperjar="$patchedJarPath" -Dvanillajar="$vanillaJarPath" -Dstyle.color=never
85-
cd "$basedir"
86-
87-
cp -v "$paperworkdir/Paperclip/assembly/target/paperclip-$mcver.jar" "./target/yatopia-$mcver-paperclip-b$BUILD_NUMBER.jar"
78+
cp -v "./yatopia-$mcver-yatoclip.jar" "./target/yatopia-$mcver-yatoclip-b$BUILD_NUMBER.jar"
8879
'''
8980
}
9081
}

0 commit comments

Comments
 (0)