Issue Type: Improvement Improvement
Assignee: Jesse Glick
Components: workflow-plugin
Created: 18/Feb/15 8:10 PM
Description:

Hi,

the 'git' step is one of the most important steps implemented for workflow.

However, there are many cases where I need to checkout the particular git tag, instead of the branch.

currently I have to do something like:

checkout scm: [$class: 'GitSCM', 
      userRemoteConfigs: [[url: '[email protected]:MYCOMPANY/cd-workflow.git']], 
      branches: [[name: 'refs/tags/workflow-1.0']]], changelog: false, poll: false

the main reason is I want to keep versioned workflow scripts on my repo and load a specific version of it. But I have also several other use cases when I need a tag from the git repository.

The notation above is actually too long and overcomplicated. Instead, I would expect to use the code like:

git url: '[email protected]:MYCOMPANY/cd-workflow.git', tag: 'workflow-1.0', changelog: false, poll: false

which is much shorter and similar to a typical git usage.

By other words, the step might support either 'branch' or 'tag' parameter. In some rare cases it would be nice also to have possibility to checkout a particular commit.

Would it be possible to add such a feature?

Project: Jenkins
Priority: Minor Minor
Reporter: Yuriy Kryshchuk
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to