[JIRA] (JENKINS-6124) git - optional control to disable fetching tags?

2012-07-25 Thread algorhyth...@java.net (JIRA)














































algoRhythm99
 commented on  JENKINS-6124


git - optional control to disable fetching tags?















Pull request to simply remove the -t option from the fetch:
https://github.com/jenkinsci/git-plugin/pull/77



























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






[JIRA] (JENKINS-6124) git - optional control to disable fetching tags?

2012-07-25 Thread ddbea...@dstsystems.com (JIRA)














































Douglas Beatty
 commented on  JENKINS-6124


git - optional control to disable fetching tags?















For a standard source code repository, this is not a significant performance wise and we have not notice this issue on our source code repositories.

However, in general, it is not good that is is fetching references and therefore objects that are not required by the build.  It is just inefficient.  However, as stated, for source code repositories it is not significant enough that we have noticed.

I have created a new issue that targets the scenario for our specific issue JENKINS-14572.

Where we have noticed it is in the Git repositories we are using to deploy our web applications which are large repositories of binary files.

We create each deployment image as an orphan commit, tag it, and push the tag not the branch back to our Git server.  This way we can delete the tags after a holding period which causes those commits to be unreferenced and eligible for garbage collection.

We have the Jenkins plug-in configured to pull down an 'empty' branch by specifying a refspec.  When all of the tags are fetched, then a large number of unneeded objects are pulled down from the repository greatly increasing the size of the repositories on the Jenkins slaves.

Having said all of that, if you want to build a specific tag, why not specify it in the refspec?  The refspec can use build parameters also.  Why fetch all tags when you only need one?



























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






[JIRA] (JENKINS-6124) git - optional control to disable fetching tags?

2012-07-25 Thread ddbea...@dstsystems.com (JIRA)












































 
Douglas Beatty
 edited a comment on  JENKINS-6124


git - optional control to disable fetching tags?
















For a standard source code repository, this is not significant performance wise and we have not noticed this issue on our source code repositories.

However, in general, it is not good that it is fetching references and therefore objects that are not required by the build.  It is just inefficient.  However, as stated, for source code repositories it is not significant enough that we have noticed.

I have created a new issue that targets the scenario for our specific issue JENKINS-14572.

Where we have noticed it is in the Git repositories we are using to deploy our web applications which are large repositories of binary files.

We create each deployment image as an orphan commit, tag it, and push the tag not the branch back to our Git server.  This way we can delete the tags after a holding period causing those commits to be unreferenced and eligible for garbage collection.

We have the Jenkins plug-in configured to pull down an 'empty' branch by specifying a refspec.  When all of the tags are fetched, then a large number of unneeded objects are pulled down from the repository greatly increasing the size of the repositories on the Jenkins slaves.

Having said all of that, if you want to build a specific tag, why not specify it in the refspec?  The refspec can use build parameters also.  Why fetch all tags when you only need one?



























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






[JIRA] (JENKINS-6124) git - optional control to disable fetching tags?

2012-07-23 Thread ddbea...@dstsystems.com (JIRA)














































Douglas Beatty
 commented on  JENKINS-6124


git - optional control to disable fetching tags?















I would also like to add that this also makes the help text associated with the refspec in the job configuration false.

Specifically,

"When do you want to modify this value? A good example is when you want to just retrieve one branch. For example, +refs/heads/master:refs/remotes/origin/master would only retrieve the master branch and nothing else."

This is not true.  It would retrieve the master branch and every tag (and their associated objects) in the entire repository.



























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






[JIRA] (JENKINS-6124) git - optional control to disable fetching tags?

2012-07-20 Thread ddbea...@dstsystems.com (JIRA)














































Douglas Beatty
 commented on  JENKINS-6124


git - optional control to disable fetching tags?















The -t option should just be removed.

What is the use case for needing to download all tags from every repository?



























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