multibranch pipeline will not poll

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

multibranch pipeline will not poll

Travis Camechis
Hey guys,

I have a multibranch pipeline defined but it will not poll.  It is set up like such

node {

  git poll: true, url: 'ssh://.........'

  stage("build") {
    checkout scm
  }


Any suggestions on why this would not poll ?  Also how do you tell it how often ?

Thanks

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e8e789a6-0346-4ea5-ab9c-6c851389eb0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: multibranch pipeline will not poll

Christopher Orr
On Thu, 9 Mar 2017, at 15:53, Travis Camechis wrote:

> Hey guys,
>
> I have a multibranch pipeline defined but it will not poll.  It is set up
> like such
>
> node {
>
>   git poll: true, url: 'ssh://.........'
>
>   stage("build") {
>     checkout scm
>   }
>
>
> Any suggestions on why this would not poll ?  Also how do you tell it how
> often ?

You should preferably be using Git webhooks to tell Jenkins when there
has been a change:
https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository

But you can additionally tell Jenkins to regularly re-scan the
repository for new branches, by using the "periodically if not otherwise
run" option:
https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline

Regards,
Chris

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1489200938.4091222.907662888.60E15F31%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: multibranch pipeline will not poll

Ferran Pujol Camins
Hello,

I've setup a Multibranch Pipeline that works correctly when manually launched with Scan Multibranch Pipeline Now.

I have checked the Periodically if otherwise not run checkbox under Scan Multibranch Pipeline Triggers and set the interval to 1 minute. However, nothing happens. The scan is not re-triggered even though I have made commits and created new branches.

Also, there's nothing logged in Multibranch Pipeline Events.

Is this a bug? Is there something I am missing?

Best regards, Ferran.

El dissabte, 11 març de 2017 3:55:49 UTC+1, Christopher Orr va escriure:
On Thu, 9 Mar 2017, at 15:53, Travis Camechis wrote:

> Hey guys,
>
> I have a multibranch pipeline defined but it will not poll.  It is set up
> like such
>
> node {
>
>   git poll: true, url: 'ssh://.........'
>
>   stage("build") {
>     checkout scm
>   }
>
>
> Any suggestions on why this would not poll ?  Also how do you tell it how
> often ?

You should preferably be using Git webhooks to tell Jenkins when there
has been a change:
<a href="https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fplugins.jenkins.io%2Fgit%23GitPlugin-Pushnotificationfromrepository\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGtmYLyIYM4aCCHoMcekva2vN6xBg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fplugins.jenkins.io%2Fgit%23GitPlugin-Pushnotificationfromrepository\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGtmYLyIYM4aCCHoMcekva2vN6xBg&#39;;return true;">https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository

But you can additionally tell Jenkins to regularly re-scan the
repository for new branches, by using the "periodically if not otherwise
run" option:
<a href="https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fmultibranch%2F%23creating-a-multibranch-pipeline\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNES8X5xHWpYw6FhjXvC4KzPFVKfFQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fmultibranch%2F%23creating-a-multibranch-pipeline\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNES8X5xHWpYw6FhjXvC4KzPFVKfFQ&#39;;return true;">https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline

Regards,
Chris

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ebd80000-0ac1-4835-815a-90219ffa78ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: multibranch pipeline will not poll

stephenconnolly
Your aim should be to set it to 8h or daily and have push notification trigger builds.


On Tue 18 Apr 2017 at 16:38, Ferran Pujol Camins <[hidden email]> wrote:
Hello,

I've setup a Multibranch Pipeline that works correctly when manually launched with Scan Multibranch Pipeline Now.

I have checked the Periodically if otherwise not run checkbox under Scan Multibranch Pipeline Triggers and set the interval to 1 minute. However, nothing happens. The scan is not re-triggered even though I have made commits and created new branches.

Also, there's nothing logged in Multibranch Pipeline Events.

Is this a bug? Is there something I am missing?

Best regards, Ferran.

El dissabte, 11 març de 2017 3:55:49 UTC+1, Christopher Orr va escriure:
On Thu, 9 Mar 2017, at 15:53, Travis Camechis wrote:

> Hey guys,
>
> I have a multibranch pipeline defined but it will not poll.  It is set up
> like such
>
> node {
>
>   git poll: true, url: 'ssh://.........'
>
>   stage("build") {
>     checkout scm
>   }
>
>
> Any suggestions on why this would not poll ?  Also how do you tell it how
> often ?

You should preferably be using Git webhooks to tell Jenkins when there
has been a change:
https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository

But you can additionally tell Jenkins to regularly re-scan the
repository for new branches, by using the "periodically if not otherwise
run" option:
https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline

Regards,
Chris

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ebd80000-0ac1-4835-815a-90219ffa78ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzJAyzm%3DrT55T%3DFRx__FEzz24JszXTGmoPsTZiA1c2dbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: multibranch pipeline will not poll

Ferran Pujol Camins
Thanks Stephen.

Sure that's the goal, however, I run Jenkins locally on my laptop by now, so I can't configure my git server to send notifications to a specific ip. I wanted to try polling until I install Jenkins to our server.

So I keep wondering why polling does not re-trigger the scan.

On 18 Apr 2017 7:31 p.m., "Stephen Connolly" <[hidden email]> wrote:
Your aim should be to set it to 8h or daily and have push notification trigger builds.


On Tue 18 Apr 2017 at 16:38, Ferran Pujol Camins <[hidden email]> wrote:
Hello,

I've setup a Multibranch Pipeline that works correctly when manually launched with Scan Multibranch Pipeline Now.

I have checked the Periodically if otherwise not run checkbox under Scan Multibranch Pipeline Triggers and set the interval to 1 minute. However, nothing happens. The scan is not re-triggered even though I have made commits and created new branches.

Also, there's nothing logged in Multibranch Pipeline Events.

Is this a bug? Is there something I am missing?

Best regards, Ferran.

El dissabte, 11 març de 2017 3:55:49 UTC+1, Christopher Orr va escriure:
On Thu, 9 Mar 2017, at 15:53, Travis Camechis wrote:

> Hey guys,
>
> I have a multibranch pipeline defined but it will not poll.  It is set up
> like such
>
> node {
>
>   git poll: true, url: 'ssh://.........'
>
>   stage("build") {
>     checkout scm
>   }
>
>
> Any suggestions on why this would not poll ?  Also how do you tell it how
> often ?

You should preferably be using Git webhooks to tell Jenkins when there
has been a change:
https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository

But you can additionally tell Jenkins to regularly re-scan the
repository for new branches, by using the "periodically if not otherwise
run" option:
https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline

Regards,
Chris

--
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 [hidden email].
--
Sent from my phone

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/dKpRv-UY9BM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzJAyzm%3DrT55T%3DFRx__FEzz24JszXTGmoPsTZiA1c2dbQ%40mail.gmail.com.

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAP9NH%3DFMADhj6Nh%2B4B02C4mSVj36qhi%3D8Q%2BpyMaOxbH8wL7wXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: multibranch pipeline will not poll

Knurek
without having the webhook, try changing the setting in the config:



On Wednesday, April 19, 2017 at 7:29:44 AM UTC+2, Ferran Pujol Camins wrote:
Thanks Stephen.

Sure that's the goal, however, I run Jenkins locally on my laptop by now, so I can't configure my git server to send notifications to a specific ip. I wanted to try polling until I install Jenkins to our server.

So I keep wondering why polling does not re-trigger the scan.

On 18 Apr 2017 7:31 p.m., "Stephen Connolly" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="M70PawFtAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">stephen.al...@gmail.com> wrote:
Your aim should be to set it to 8h or daily and have push notification trigger builds.


On Tue 18 Apr 2017 at 16:38, Ferran Pujol Camins <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="M70PawFtAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ferranpu...@...> wrote:
Hello,

I've setup a Multibranch Pipeline that works correctly when manually launched with Scan Multibranch Pipeline Now.

I have checked the Periodically if otherwise not run checkbox under Scan Multibranch Pipeline Triggers and set the interval to 1 minute. However, nothing happens. The scan is not re-triggered even though I have made commits and created new branches.

Also, there's nothing logged in Multibranch Pipeline Events.

Is this a bug? Is there something I am missing?

Best regards, Ferran.

El dissabte, 11 març de 2017 3:55:49 UTC+1, Christopher Orr va escriure:
On Thu, 9 Mar 2017, at 15:53, Travis Camechis wrote:

> Hey guys,
>
> I have a multibranch pipeline defined but it will not poll.  It is set up
> like such
>
> node {
>
>   git poll: true, url: 'ssh://.........'
>
>   stage("build") {
>     checkout scm
>   }
>
>
> Any suggestions on why this would not poll ?  Also how do you tell it how
> often ?

You should preferably be using Git webhooks to tell Jenkins when there
has been a change:
<a href="https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fplugins.jenkins.io%2Fgit%23GitPlugin-Pushnotificationfromrepository\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGtmYLyIYM4aCCHoMcekva2vN6xBg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fplugins.jenkins.io%2Fgit%23GitPlugin-Pushnotificationfromrepository\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGtmYLyIYM4aCCHoMcekva2vN6xBg&#39;;return true;">https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository

But you can additionally tell Jenkins to regularly re-scan the
repository for new branches, by using the "periodically if not otherwise
run" option:
<a href="https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fmultibranch%2F%23creating-a-multibranch-pipeline\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNES8X5xHWpYw6FhjXvC4KzPFVKfFQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fbook%2Fpipeline%2Fmultibranch%2F%23creating-a-multibranch-pipeline\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNES8X5xHWpYw6FhjXvC4KzPFVKfFQ&#39;;return true;">https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline

Regards,
Chris

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="M70PawFtAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.

To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/ebd80000-0ac1-4835-815a-90219ffa78ea%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ebd80000-0ac1-4835-815a-90219ffa78ea%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ebd80000-0ac1-4835-815a-90219ffa78ea%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/ebd80000-0ac1-4835-815a-90219ffa78ea%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
--
Sent from my phone

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/dKpRv-UY9BM/unsubscribe" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/dKpRv-UY9BM/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/dKpRv-UY9BM/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/dKpRv-UY9BM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="M70PawFtAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzJAyzm%3DrT55T%3DFRx__FEzz24JszXTGmoPsTZiA1c2dbQ%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzJAyzm%3DrT55T%3DFRx__FEzz24JszXTGmoPsTZiA1c2dbQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzJAyzm%3DrT55T%3DFRx__FEzz24JszXTGmoPsTZiA1c2dbQ%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMzJAyzm%3DrT55T%3DFRx__FEzz24JszXTGmoPsTZiA1c2dbQ%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/78959993-3dad-4637-a93b-b606def7cdc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Screen Shot 2017-04-19 at 11.12.16 AM.png (9K) Download Attachment
Loading...