`scheduleBuild(0)` on the multibranch project is the api for scanning now
(as a build of a multibranch project is a scan)

On 5 August 2017 at 04:57, Stephen Connolly <stephen.alan.conno...@gmail.com
> wrote:

> Scan repository now will always kick off builds of branches that have
> changes since the last scan where those changes were missed by the event
> handler... so you are kind of asking for the non-possible
>
> On 4 August 2017 at 06:13, Budding Mechanic <budding.mecha...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I'm using the multibranch pipeline to scan a git repo for branches.
>>
>> From the web interface, there's a "Scan Repository Now" button to scan an
>> git org and pick up new folders/branches.  It works fine.
>>
>> What I'd like to do is programmatically scan a git repo via a groovy
>> script.
>>
>> I have been unable to find the api call that just scans the repo.
>>
>> I can use 'scheduleBuild(0)' to do the scanning but it also kicks off a
>> build which I would like to avoid.
>>
>> Thoughts?
>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-users/ca61e0d0-a97a-4d4f-8d34-c4f7d64a65b0%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ca61e0d0-a97a-4d4f-8d34-c4f7d64a65b0%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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMwGChqW4ubn3zVnc%3D2CPQm1xi-3BC8GOeUBqPogVRdLkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to