42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
--- a/.jenkins/Jenkinsfile.snapshot
|
|
+++ b/.jenkins/Jenkinsfile.snapshot
|
|
@@ -1,10 +1,11 @@
|
|
def projectName = "CraterLib";
|
|
def projectIcon = "https://cdn.modrinth.com/data/Nn8Wasaq/a172c634683a11a2e9ae593e56eba7885743bb44.png";
|
|
+def relType = "snapshot"
|
|
|
|
pipeline {
|
|
agent {
|
|
docker {
|
|
- image "registry.firstdark.dev/java21:latest"
|
|
+ image "registry.firstdark.dev/java17:latest"
|
|
alwaysPull true
|
|
}
|
|
}
|
|
@@ -29,14 +30,14 @@
|
|
|
|
stage("Build") {
|
|
steps {
|
|
- sh "./gradlew build -PreleaseType=port"
|
|
+ sh "./gradlew build -PreleaseType=${relType}"
|
|
}
|
|
}
|
|
|
|
stage("Publish to Maven") {
|
|
steps {
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
- sh "./gradlew publish -PreleaseType=port"
|
|
+ sh "./gradlew publish -PreleaseType=${relType}"
|
|
}
|
|
}
|
|
}
|
|
@@ -52,7 +53,7 @@
|
|
projectName: "${projectName}",
|
|
projectIcon: "${projectIcon}",
|
|
modLoaders: "forge|neoforge|fabric|quilt",
|
|
- minecraftVersions: "1.20.6",
|
|
+ minecraftVersions: "1.20.4",
|
|
failWebhook: env.SSS_WEBHOOK,
|
|
publishWebhooks: "${env.SSS_WEBHOOK}|${env.FDD_WH}"
|
|
|