>From the release note it says it can be added with "Advanced Clone 
Behaviours".


   - Because each branch job in a multibranch project will only ever build 
   the one specific branch, the default behaviour for a Git Branch Source is 
   now to use a minimal refspec corresponding to just the required branch. 
   Tags will not be checked out by default. If you have a multibranch project 
   that requires the full set of ref-specs (for example, you might have a 
   pipeline that will use some analysis tool on the diff with some other 
   branch) you can restore the previous behaviour by adding the "Advanced 
   Clone Behaviours". Note: In some cases you may also need to add the 
   "Specify ref specs" behaviour.



Next time I update my Jenkins plugins I am going to take extra care to make 
sure there is no braking changes.

onsdag 30. august 2017 17.21.11 UTC+2 skrev Mark Waite følgende:
>
> Refer to the git plugin release notes for git plugin version 3.4.0.  
>
> You can restore the original behavior to request the tags (and to not 
> honor refspec on initial clone) by adding the Advanced checkout options to 
> the job definition.
>
> Mark Waite
>
> On Wed, Aug 30, 2017 at 2:00 AM Sverre Moe <[email protected] 
> <javascript:>> wrote:
>
>> Have pipeline changed how it does checkout scm recently?
>> Previously I got tags with each checkout, but no longer.
>> I have to execute shell script 'git fetch --tags" after calling checkout 
>> scm.
>> Makes me wonder what has changed, what else might have changed and how 
>> can I get back the previous behaviour.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/c53ec2ae-d663-4a20-84ce-ab9e005f2255%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/c53ec2ae-d663-4a20-84ce-ab9e005f2255%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f5b5dcdb-5220-40d6-a3f2-fd6a105e7c77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to