Skip to content

Commit c28ac0f

Browse files
authored
Update Jenkinsfile-input
1 parent d1cf996 commit c28ac0f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Jenkinsfile-input

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ pipeline {
3131

3232
stage('use result'){
3333
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)]
34+
script{
35+
result = input message: 'Please input the git branch name!', ok: 'Confirm',
36+
parameters: [string(defaultValue: 'master',
37+
description: 'The branch name of git repo', name: 'branchName', trim: true)]
3738

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+
}
3941
}
4042
}
4143

0 commit comments

Comments
 (0)