build: 修改 jenkins 环境变量
This commit is contained in:
@@ -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")
|
||||||
|
@@ -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> {
|
||||||
|
@@ -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> {
|
||||||
|
Reference in New Issue
Block a user