Skip to content

Commit 54a55be

Browse files
committed
Print maven envvar
1 parent 6cc8ec2 commit 54a55be

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

Jenkinsfile

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ pipeline {
99
parameters {
1010
booleanParam(
1111
name: "PUBLISH_MAVEN_RELEASE",
12-
description: "Publish release to Maven",
13-
defaultValue: false
12+
description: "Publish release to Maven (default: publish snapshot)",
13+
defaultValue: false,
1414
)
1515
booleanParam(
1616
name: "PUBLISH_CURSEFORGE",
1717
description: "Publish to CurseForge",
18-
defaultValue: false
18+
defaultValue: false,
1919
)
2020
booleanParam(
2121
name: "PUBLISH_MODRINTH",
2222
description: "Publish to Modrinth",
23-
defaultValue: false
23+
defaultValue: false,
2424
)
2525
booleanParam(
2626
name: "PUBLISH_GITHUB",
2727
description: "Publish to GitHub",
28-
defaultValue: false
28+
defaultValue: false,
2929
)
3030
}
3131
stages {
@@ -43,20 +43,9 @@ pipeline {
4343
stage("Publish") {
4444
failFast false
4545
parallel {
46-
stage("Maven Release") {
47-
when {
48-
expression { return params.PUBLISH_MAVEN_RELEASE }
49-
}
50-
steps {
51-
echo "Publishing release to Maven"
52-
}
53-
}
54-
stage("Maven Snapshot") {
55-
when {
56-
expression { return !params.PUBLISH_MAVEN_RELEASE }
57-
}
46+
stage("Maven") {
5847
steps {
59-
echo "Publishing snapshot to Maven"
48+
echo "Publishing to Maven: '${env.PUBLISH_MAVEN_RELEASE}'"
6049
}
6150
}
6251
stage("CurseForge") {

0 commit comments

Comments
 (0)