build: 修改 jenkins 环境变量

This commit is contained in:
2024-03-15 11:39:07 +08:00
parent 32495e6c12
commit 8fdb28094d
3 changed files with 2 additions and 8 deletions

View File

@@ -1,5 +1,3 @@
@file:Suppress("UNCHECKED_CAST")
plugins { plugins {
id("java") id("java")
id("maven-publish") id("maven-publish")
@@ -9,12 +7,6 @@ plugins {
group = "cn.hamster3.mc.plugin" group = "cn.hamster3.mc.plugin"
version = "1.3.1" version = "1.3.1"
rootProject.properties.putAll(System.getenv() as Map<String, Nothing>)
rootProject.properties.forEach { (k, v) ->
println("$k = $v")
}
subprojects { subprojects {
apply { apply {
plugin("java") plugin("java")

View File

@@ -33,6 +33,7 @@ tasks {
processResources { processResources {
filesMatching("plugin.yml") { filesMatching("plugin.yml") {
expand(rootProject.properties) expand(rootProject.properties)
expand(System.getenv())
} }
} }
withType<Jar> { withType<Jar> {

View File

@@ -29,6 +29,7 @@ tasks {
processResources { processResources {
filesMatching("bungee.yml") { filesMatching("bungee.yml") {
expand(rootProject.properties) expand(rootProject.properties)
expand(System.getenv())
} }
} }
withType<Jar> { withType<Jar> {