mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-28 21:56:37 +01:00
maven test 3
This commit is contained in:
parent
f564431f5a
commit
5e3f7d43c0
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -33,7 +33,6 @@ pipeline {
|
||||
publisherStrategy: 'EXPLICIT',
|
||||
) {
|
||||
sh '''
|
||||
whereis mvn && exit
|
||||
./gradlew setupUpstream
|
||||
./gradlew applyPatches
|
||||
'''
|
||||
@ -52,6 +51,7 @@ pipeline {
|
||||
) {
|
||||
withCredentials([usernamePassword(credentialsId: 'jenkins-deploy', usernameVariable: 'ORG_GRADLE_PROJECT_mavenUsername', passwordVariable: 'ORG_GRADLE_PROJECT_mavenPassword')]) {
|
||||
sh '''
|
||||
chmod +x mvn || true
|
||||
./gradlew clean build paperclip publish
|
||||
mkdir -p "./target"
|
||||
basedir=$(pwd)
|
||||
|
@ -28,7 +28,10 @@ internal fun Project.createPaperclipTask(
|
||||
"-Dvanillajar=$vanillaJarPath"
|
||||
)
|
||||
if (System.getProperty("os.name").startsWith("Windows")) paperclipCmd[0] = "mvn.cmd"
|
||||
if (jenkins) paperclipCmd.add("-Dstyle.color=never")
|
||||
if (jenkins) {
|
||||
paperclipCmd.add("-Dstyle.color=never")
|
||||
paperclipCmd[0] = "./mvn"
|
||||
}
|
||||
ensureSuccess(cmd(*paperclipCmd.toTypedArray(), dir = paperclipDir, printOut = true))
|
||||
val paperClip = paperclipDir.resolve("assembly/target/paperclip-${toothpick.minecraftVersion}.jar")
|
||||
val destination = rootProjectDir.resolve(toothpick.calcPaperclipName)
|
||||
|
Loading…
Reference in New Issue
Block a user