Mark,
I am following the guideline here:
http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
where:
(1) My build is configured with polling
(2) Schedule is empty
(3) git commit hook does a curl 'notifyCommit' back to the git server
I thought that when (3) occurred, that triggers Jenkins to do the polling
right away, as long as:
(1) Polling is enabled on build config
(2) Schedule for polling can be empty
That's what I have been using and it seems to work, so I am confused by the
error message of the git plugin.
--
Craig
On Tue, Jan 21, 2014 at 9:04 PM, Mark Waite <[email protected]>wrote:
> If schedule is empty, I believe no polling is performed. If you insert
> the keyword @daily, it will only poll once a day, but will respond to build
> requests since there is some polling interval defined. At least, I think
> that is what I observed previously.
>
> Mark Waite
>
>
> On Tue, Jan 21, 2014 at 6:54 PM, Craig Rodrigues <[email protected]>wrote:
>
>> Hi,
>>
>> I have the TrueNAS-master2 build configured with the MultipleSCM plugin.
>> TrueNAS-master2
>> is configured to check out from 3 different git repos. One of the git
>> repos is [email protected]:/
>> git/repos/freenas-build/trueos.git
>>
>> In the TrueNAS-master2 build, in the Build Triggers section, I have "Poll
>> SCM" checked, and
>> "Schedule" is empty.
>>
>>
>> So, this should be polling the repository?
>> --
>> Craig
>>
>>
>> On Tue, Jan 21, 2014 at 5:22 PM, Mark Waite <[email protected]>wrote:
>>
>>> I don't think you're doing anything wrong, though that message is
>>> surprising.
>>>
>>> Do you have any jobs which are polling the Git URL
>>> [email protected]:/git/repos/freenas-build/trueos.git ? If
>>> not, then I think you could probably remove that warning by creating a job
>>> which polls that Git URL.
>>>
>>> That's just a guess though, since I don't claim to really understand
>>> that portion of the git plugin code.
>>>
>>> Thanks,
>>> Mark Waite
>>>
>>>
>>>
>>> On Tue, Jan 21, 2014 at 6:17 PM, Craig Rodrigues <[email protected]>wrote:
>>>
>>>> Thanks for that pointer.
>>>>
>>>> I am confused about one thing. In my environment,
>>>> I have a build named TrueNAS-master2 configured with the MultipleSCM
>>>> plugin. One of the repos in my build is configured to use this URL:
>>>>
>>>> [email protected]:/git/repos/freenas-build/trueos.git
>>>>
>>>> If I do this:
>>>>
>>>> curl -Ss "
>>>> http://jenkins1.sjlab1.ixsystems.com:8180/jenkins/git/[email protected]:/git/repos/freenas-build/trueos.git
>>>> "
>>>>
>>>> I see this:
>>>>
>>>> Scheduled polling of TrueNAS-master2
>>>> No git consumers for URI [email protected]:
>>>> /git/repos/freenas-build/trueos.git
>>>>
>>>> So although my build is being polled, I am still getting "No git
>>>> consumers".
>>>> This is confusing to my end users. Am I doing something wrong?
>>>>
>>>> --
>>>> Craig
>>>>
>>>>
>>>>
>>>> On Tue, Jan 21, 2014 at 5:11 PM, Mark Waite
>>>> <[email protected]>wrote:
>>>>
>>>>> The message comes from
>>>>>
>>>>>
>>>>> https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/jenkins/plugins/git/GitSCMSource.java#L180
>>>>>
>>>>> I think it means that the git source control provider inside Jenkins
>>>>> expected that something was interested in that URL, but when it iterated
>>>>> over the list of things which might be interested, it didn't find anything
>>>>> to notify.
>>>>>
>>>>> I assume it is harmless.
>>>>>
>>>>> The git plugin definitely supports ssh URL's. I use them frequently.
>>>>>
>>>>> Thanks!
>>>>> Mark Waite
>>>>>
>>>> --
>>>> 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].
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks!
>>> Mark Waite
>>>
>>> --
>>> 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].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>> --
>> 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].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Thanks!
> Mark Waite
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
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].
For more options, visit https://groups.google.com/groups/opt_out.