mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-25 12:05:14 +01:00
revert changes (well that didn't work)
This commit is contained in:
parent
5e3f7d43c0
commit
803b6a4dce
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -51,7 +51,6 @@ pipeline {
|
|||||||
) {
|
) {
|
||||||
withCredentials([usernamePassword(credentialsId: 'jenkins-deploy', usernameVariable: 'ORG_GRADLE_PROJECT_mavenUsername', passwordVariable: 'ORG_GRADLE_PROJECT_mavenPassword')]) {
|
withCredentials([usernamePassword(credentialsId: 'jenkins-deploy', usernameVariable: 'ORG_GRADLE_PROJECT_mavenUsername', passwordVariable: 'ORG_GRADLE_PROJECT_mavenPassword')]) {
|
||||||
sh '''
|
sh '''
|
||||||
chmod +x mvn || true
|
|
||||||
./gradlew clean build paperclip publish
|
./gradlew clean build paperclip publish
|
||||||
mkdir -p "./target"
|
mkdir -p "./target"
|
||||||
basedir=$(pwd)
|
basedir=$(pwd)
|
||||||
|
@ -28,10 +28,7 @@ internal fun Project.createPaperclipTask(
|
|||||||
"-Dvanillajar=$vanillaJarPath"
|
"-Dvanillajar=$vanillaJarPath"
|
||||||
)
|
)
|
||||||
if (System.getProperty("os.name").startsWith("Windows")) paperclipCmd[0] = "mvn.cmd"
|
if (System.getProperty("os.name").startsWith("Windows")) paperclipCmd[0] = "mvn.cmd"
|
||||||
if (jenkins) {
|
if (jenkins) paperclipCmd.add("-Dstyle.color=never")
|
||||||
paperclipCmd.add("-Dstyle.color=never")
|
|
||||||
paperclipCmd[0] = "./mvn"
|
|
||||||
}
|
|
||||||
ensureSuccess(cmd(*paperclipCmd.toTypedArray(), dir = paperclipDir, printOut = true))
|
ensureSuccess(cmd(*paperclipCmd.toTypedArray(), dir = paperclipDir, printOut = true))
|
||||||
val paperClip = paperclipDir.resolve("assembly/target/paperclip-${toothpick.minecraftVersion}.jar")
|
val paperClip = paperclipDir.resolve("assembly/target/paperclip-${toothpick.minecraftVersion}.jar")
|
||||||
val destination = rootProjectDir.resolve(toothpick.calcPaperclipName)
|
val destination = rootProjectDir.resolve(toothpick.calcPaperclipName)
|
||||||
|
Loading…
Reference in New Issue
Block a user