Skip to content

Commit d1cf996

Browse files
authored
Update Jenkinsfile-input
1 parent 870952a commit d1cf996

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Jenkinsfile-input

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,16 @@ pipeline {
2828
}
2929
}
3030
}
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)]
37+
38+
git branch: result.branchName, url: 'https://github.com/devops-workspace/demo-junit'
39+
}
40+
}
41+
3142
}
3243
}

0 commit comments

Comments
 (0)