[JIRA] (JENKINS-40529) Prune tags on fetch

2020-04-10 Thread nfalc...@hotmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nikolas Falco updated  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Change By: 
 Nikolas Falco  
 
 
Status: 
 Open Fixed but Unreleased  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.177211.1482077235000.9044.1586536800613%40Atlassian.JIRA.


[JIRA] (JENKINS-40529) Prune tags on fetch

2020-02-28 Thread nfalc...@hotmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nikolas Falco assigned an issue to Nikolas Falco  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Change By: 
 Nikolas Falco  
 
 
Assignee: 
 Nikolas Falco  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.177211.1482077235000.1439.1582917840297%40Atlassian.JIRA.


[JIRA] (JENKINS-40529) Prune tags on fetch

2020-02-28 Thread nfalc...@hotmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nikolas Falco commented on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 This feature is really wanted for us. Every time a maven release:prepare release:perform fails it create a local tag and if we run the build again it fails due to that. We need to login in SSH on the jenkins slave node and remove them manually.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.177211.1482077235000.1350.1582898820391%40Atlassian.JIRA.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 [~xeagle]This is actually possible by adding the ref spec '+refs/tags/*:refs/tags/*' using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched.  Fetch must also have '--prune' specified, but you probably already use that (--prune can be added by using the 'Prune stale remote-tracking branches' behavior, or 'git config fetch.prune true'). Some info on the subject [here|https://stackoverflow.com/questions/1841341/remove-local-git-tags-that-are-no-longer-on-the-remote-repository/16311126].  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 [~xeagle]This is actually possible by adding the ref spec '+refs/tags/*:refs/tags/*' using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched. Fetch must also have ' \ - \ -prune' specified, but you probably already use that ( \ - \ -prune can be added by using the 'Prune stale remote-tracking branches' behavior, or 'git config fetch.prune true').Some info on the subject [here|https://stackoverflow.com/questions/1841341/remove-local-git-tags-that-are-no-longer-on-the-remote-repository/16311126].  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 [~xeagle] This is actually possible by adding the ref spec '+refs/tags/ \ *:refs/tags/ \ *' using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched. Some info on the subject [here|https://stackoverflow.com/questions/1841341/remove-local-git-tags-that-are-no-longer-on-the-remote-repository/16311126].  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 This is actually possible by adding the ref spec  {{ +refs/tags/*:refs/tags/* }}  using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 This is actually possible by adding the ref spec  '  +refs/tags/ \ *:refs/tags/ \ * '  using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 This is actually possible by adding the ref spec  ' {{+refs/tags/* * :refs/tags/* **'* }} using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 This is actually possible by adding the ref spec '{{+refs/tags/*:refs/tags/**'*}} using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 This is actually possible by adding the ref spec '{{+refs/tags/* * :refs/tags/** * '*}} using the 'specify ref specs' behavior - stale local tags will be deleted, and new remote tags will be fetched.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 If it was possible to have multiple ref specs in the 'specify ref specs' behavior, this would This is  actually  be  possible by adding the ref spec '{{+refs/tags/ * :refs/tags/* ' * (this even works with --no-tags}}).Unfortunately this doesn ' t seem to be supported by git-plugin:{code:java}ERROR: [on mar. 27 12:48:52 GMT+01:00 2019] Could not fetch branches from source 6728e3b7-48a3-458c-9153-0da05369031fjava.lang.IllegalArgumentException: Invalid refspec refs/heads/ * :refs/remotes/origin/* +refs/tags/* at org.eclipse.jgit.transport.RefSpec.checkValid(RefSpec.java:539) at org.eclipse.jgit.transport.RefSpec.(RefSpec.java:191)... {code } This validation error happens when } using  the  specified  'specify  ref  spec is  specs  ' +refs/heads/*:refs/remotes/@\{  behavior - stale local tags will be deleted, and new remote }/* +refs/ tags /*:refs/tags/*'   will be fetched.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 If it was possible to have multiple ref specs in the 'specify ref specs' behavior, this would actually be possible by adding the ref spec '{{+refs/tags/:refs/tags/*'*(this even works with  {{ --no-tags}}).Unfortunately this doesn't seem to be supported by git-plugin:{code:java}ERROR: [on mar. 27 12:48:52 GMT+01:00 2019] Could not fetch branches from source 6728e3b7-48a3-458c-9153-0da05369031fjava.lang.IllegalArgumentException: Invalid refspec refs/heads/*:refs/remotes/origin/* +refs/tags/* at org.eclipse.jgit.transport.RefSpec.checkValid(RefSpec.java:539) at org.eclipse.jgit.transport.RefSpec.(RefSpec.java:191)... {code}This validation error happens when the specified ref spec is '+refs/heads/*:refs/remotes/@\{remote}/* +refs/tags/*:refs/tags/*'   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 If it was possible to have multiple ref specs in the 'specify ref specs' behavior, this would actually be possible by adding the ref spec  '  {{+refs/tags/ * :refs/tags/*  }} '* (this even works with {{--no-tags}}).Unfortunately this doesn't seem to be supported by git-plugin:{code:java}ERROR: [on mar. 27 12:48:52 GMT+01:00 2019] Could not fetch branches from source 6728e3b7-48a3-458c-9153-0da05369031fjava.lang.IllegalArgumentException: Invalid refspec refs/heads/*:refs/remotes/origin/* +refs/tags/* at org.eclipse.jgit.transport.RefSpec.checkValid(RefSpec.java:539) at org.eclipse.jgit.transport.RefSpec.(RefSpec.java:191)... {code}This validation error happens when the specified ref spec is '+refs/heads/*:refs/remotes/@\{remote}/* +refs/tags/*:refs/tags/*'   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2019-03-27 Thread bru...@bruder.dk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesper Matthiesen commented on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 If it was possible to have multiple ref specs in the 'specify ref specs' behavior, this would actually be possible by adding the ref spec +refs/tags/:refs/tags/ }}(this even works with {{--no-tags). Unfortunately this doesn't seem to be supported by git-plugin: 

 

ERROR: [on mar. 27 12:48:52 GMT+01:00 2019] Could not fetch branches from source 6728e3b7-48a3-458c-9153-0da05369031f
java.lang.IllegalArgumentException: Invalid refspec refs/heads/*:refs/remotes/origin/* +refs/tags/*
	at org.eclipse.jgit.transport.RefSpec.checkValid(RefSpec.java:539)
	at org.eclipse.jgit.transport.RefSpec.(RefSpec.java:191)
...  

 This validation error happens when the specified ref spec is '+refs/heads/:refs/remotes/@{remote}/ +refs/tags/:refs/tags/'    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2017-02-09 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 Thanks for the additional details.   Thanks   That  makes it much clearer for me.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 Thanks for the additional details. Thanks makes it much clearer for me.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread yura.zaplav...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yuriy Zaplavnov edited a comment on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 Yes, the options such as to prune the branches or to fetch the specific refspec are available and they are the part of the advanced options, however they are unfortunately not relevant to the case I'm looking for. Let's imagine there is a job which is configured to clone repository and pull the changes for the specific branch. Additionally to the changes, all the tags associated with commits within that branch are also retrieved from central repository. For example: Step 1: there is a branch 'test-branch' which is supposed to be retrieved and pulled for the changes. The 'test-branch' contains the commits with associated tags: 'test-tag1', 'test-tag2'. Step 2: Run job, and all those tags will be fetched from origin. Step 3: Someone updates origin by removing tag 'test-tag2' and associating a new tag 'test-tag3' with a commit within our sample branch 'test-branch'. Step 4: Run job, and our workspace would contain new tag 'test-tag3', and old one 'test-tag2' which was removed in origin (but still exists in checked workspace). The goal is to do not have 'test-tag2' in checked workspace, because it doesn't exist already in origin. As far as I see there is no way at the moment how it could be achieved by using the git-plugin, therefore I wondered to prune tags.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 

[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-40529  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Prune tags on fetch   
 

  
 
 
 
 

 
 Could you further explain the benefits you see from pruning tags? Does it reduce objects fetched, does it reduce local disc space, or is it something completely different? The option to not fetch tags (for those jobs which don't need tags) is already a part of the advanced clone options so that additional references are not brought in through cloning the tags. The option to prune the repository of remote branches which have been deleted is already a part of the advanced clone options, for those who want to remove remotely deleted branches from their local repository. The option to request one or more custom refspecs is already part of the git repository definition portion of the job (thus, you could ask to only clone tags), and the ability to honor a custom refspec on initial clone is already part of the advanced clone options.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 
 
Assignee: 
 Mark Waite  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread yura.zaplav...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yuriy Zaplavnov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Change By: 
 Yuriy Zaplavnov  
 

  
 
 
 
 

 
 The git-plugin doesn't prune tags on fetch and it comes to the situation when there are a lot of unused tags already fetched and stored locally in .git even though that tags in central repository were already removed.In cases when the build process is based on tags, old tags could play a role and break the custom build logic.To avoid this, there is an option to delete a workspace entirely before build, however it doesn't look like a right and nice solution to clone everything again.It would help a lot if there will be an option implemented to prune tags on fetch such as{code: shell none }# git fetch --prune origin +refs/tags/*:refs/tags/*{code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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, 

[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread yura.zaplav...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yuriy Zaplavnov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Change By: 
 Yuriy Zaplavnov  
 

  
 
 
 
 

 
 The git-plugin doesn't prune tags on fetch and it comes to the situation when there are a lot of unused tags already fetched and stored locally in .git even though that tags in central repository were already removed.In cases when the build process is based on tags, old tags could play a role and break the custom build logic.To avoid this, there is an option to delete a workspace entirely before build, however it doesn't look like a right and nice solution to clone everything again.It would help a lot if there will be an option implemented to prune tags on fetch such as $ {code:shell}#  git fetch --prune origin +refs/tags/*:refs/tags/* {code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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, 

[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread yura.zaplav...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yuriy Zaplavnov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Change By: 
 Yuriy Zaplavnov  
 

  
 
 
 
 

 
 The git-plugin doesn't prune tags on fetch and it comes to the situation when there are a lot of unused tags already fetched and stored locally in .git even though that tags in central repository were already removed.In cases when the build process is based on tags, old tags could play a role and break the custom build logic.To avoid this, there is an option to delete a workspace entirely before build, however it doesn't look like a right and nice solution to clone everything again.It would help a lot if there will be an option implemented to prune tags on fetch such as  # $  git fetch --prune origin +refs/tags/*:refs/tags/*  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 

[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread yura.zaplav...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yuriy Zaplavnov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Change By: 
 Yuriy Zaplavnov  
 

  
 
 
 
 

 
 The git-plugin doesn't prune tags on fetch and it comes to the situation when there are a lot of unused tags already fetched and stored locally in .git even though that tags in central repository were already removed.In cases when the build process is based on tags, old tags could play a role and break the custom build logic.To avoid this, there is an option to delete a workspace entirely before build, however it doesn't look like a right and nice solution to clone everything again.It would help a lot if there will be an option implemented to prune tags on fetch such as# git fetch --prune origin +refs/tags/*:refs/tags/*  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 

[JIRA] (JENKINS-40529) Prune tags on fetch

2016-12-18 Thread yura.zaplav...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Y Z created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40529  
 
 
  Prune tags on fetch   
 

  
 
 
 
 

 
Issue Type: 
  New Feature  
 
 
Assignee: 
 Mark Waite  
 
 
Components: 
 git-plugin  
 
 
Created: 
 2016/Dec/18 4:07 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Y Z  
 

  
 
 
 
 

 
 The git-plugin doesn't prune tags on fetch and it comes to the situation when there are a lot of unused tags already fetched and stored locally in .git even though that tags in central repository were already removed. In cases when the build process is based on tags, old tags could play a role and break the custom build logic. To avoid this, there is an option to delete a workspace entirely before build, however it doesn't look like a right and nice solution to clone everything again. It would help a lot if there will be an option implemented to prune tags on fetch such as 
 
git fetch --prune origin +refs/tags/:refs/tags/ 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment