You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .ci/release/Jenkinsfile
+15-24Lines changed: 15 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -108,34 +108,25 @@ pipeline {
108
108
}
109
109
}
110
110
}
111
-
stage('Review project version') {
111
+
stage('Set release version') {
112
112
steps {
113
113
dir("${BASE_DIR}"){
114
114
script {
115
-
def ver = mvnVersion(showQualifiers: true)
116
-
def should_continue = input(message: "Current version is ${ver}", parameters: [
117
-
[
118
-
$class: 'ChoiceParameterDefinition',
119
-
name: "You are about to release version ${ver - '-SNAPSHOT'}. Do you wish to update the version?",
120
-
"choices": ["Yes", "No"],
121
-
description: "Selecting 'Yes' will allow you to select the new version in the next step."
122
-
]
123
-
])
124
-
if (should_continue =='Yes'){
125
-
def new_version = input(message: "Please enter version to change to:", parameters:
126
-
[
127
-
[
128
-
$class: 'StringParameterDefinition',
129
-
defaultValue: "${ver}",
130
-
description: 'We will update the project version in all pom.xml files. Set this to your desired <release-version>-SNAPSHOT (for example 1.2.3-SNAPSHOT if you want to release version 1.2.3).', name: 'New Version'
def user_release_version = input(message: "Please enter version to release:", parameters: [[
118
+
$class: 'StringParameterDefinition',
119
+
name: 'Release version',
120
+
defaultValue: "${release_version}",
121
+
description: "Current project version is ${snapshot_version}, will be released as ${release_version} if unchanged. Input release version without '-SNAPSHOT' suffix"
0 commit comments