We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1cf996 commit c28ac0fCopy full SHA for c28ac0f
1 file changed
Jenkinsfile-input
@@ -31,11 +31,13 @@ pipeline {
31
32
stage('use result'){
33
steps{
34
- result = input message: 'Please input the git branch name!', ok: 'Confirm',
35
- parameters: [string(defaultValue: 'master',
36
- description: 'The branch name of git repo', name: 'branchName', trim: true)]
+ script{
+ result = input message: 'Please input the git branch name!', ok: 'Confirm',
+ parameters: [string(defaultValue: 'master',
37
+ description: 'The branch name of git repo', name: 'branchName', trim: true)]
38
- git branch: result.branchName, url: 'https://github.com/devops-workspace/demo-junit'
39
+ git branch: result.branchName, url: 'https://github.com/devops-workspace/demo-junit'
40
+ }
41
}
42
43
0 commit comments