Jenkins not polling

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

Jenkins not polling

Hemanth Shekar
I am using Jenkins to poll for a file in a unix directory ( Shell ) 
If the file is present running some commands as the build steps .


A manual build works but polling is not happening . 
i have polling by minute . 

The script trigger log tells 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

I need it to poll every minute 
what am i doing wrong

--
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/ed3a210f-7dc1-419c-b8b4-a09ec26243ce%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: Jenkins not polling

Terry Lacy
I assume you have "Build periodically" checked under the job's Build Triggers section.

What do you have in the "Schedule" field?

Terry

On Wednesday, May 31, 2017 at 3:01:01 PM UTC-6, Hemanth Shekar wrote:
I am using Jenkins to poll for a file in a unix directory ( Shell ) 
If the file is present running some commands as the build steps .


A manual build works but polling is not happening . 
i have polling by minute . 

The script trigger log tells 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

I need it to poll every minute 
what am i doing wrong

--
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/b3b85796-95fc-491b-9aa8-29836c8992ee%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: Jenkins not polling

Hemanth Shekar
I have [ScriptTrigger] - Poll with a shell or batch script checked. 
The script value is 

#!/bin/ksh
exit 9

Exit Code parameter is set to 9 


On Thursday, June 1, 2017 at 10:21:58 AM UTC-7, Terry Lacy wrote:
I assume you have "Build periodically" checked under the job's Build Triggers section.

What do you have in the "Schedule" field?

Terry

On Wednesday, May 31, 2017 at 3:01:01 PM UTC-6, Hemanth Shekar wrote:
I am using Jenkins to poll for a file in a unix directory ( Shell ) 
If the file is present running some commands as the build steps .


A manual build works but polling is not happening . 
i have polling by minute . 

The script trigger log tells 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

I need it to poll every minute 
what am i doing wrong

--
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/d837e497-cc58-482b-8340-4ba163db7f00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jenkins1.png (509K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jenkins not polling

Terry Lacy
Okay that must be from a plugin? I don't have that in my install. Is that really the syntax for the Schedule setting?

I located the ScriptTrigger plugin (https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin). It's not really clear from their documentation what the syntax for the Schedule field is, either. Their example in their documentation image might be bogus.

I'm just guessing the syntax is probably similar to the one for the "Build periodically" Schedule. In other words, cron syntax.(minute hour DOM (day of month) month DOW (day of week) 

See the examples for the "Build periodically" schedule field by clicking on the "?" next to that field.


On Thursday, June 1, 2017 at 5:23:38 PM UTC-6, Hemanth Shekar wrote:
I have [ScriptTrigger] - Poll with a shell or batch script checked. 
The script value is 

#!/bin/ksh
exit 9

Exit Code parameter is set to 9 


On Thursday, June 1, 2017 at 10:21:58 AM UTC-7, Terry Lacy wrote:
I assume you have "Build periodically" checked under the job's Build Triggers section.

What do you have in the "Schedule" field?

Terry

On Wednesday, May 31, 2017 at 3:01:01 PM UTC-6, Hemanth Shekar wrote:
I am using Jenkins to poll for a file in a unix directory ( Shell ) 
If the file is present running some commands as the build steps .


A manual build works but polling is not happening . 
i have polling by minute . 

The script trigger log tells 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

I need it to poll every minute 
what am i doing wrong

--
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/dcd7587a-c34b-4f58-a9ae-540b520eb01c%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: Jenkins not polling

Hemanth Shekar
My requirement is that  i need to check for a condition to happen in a remote Linux server and then schedule a build . 
The condition is  i need to check some files for some patterns  in a particular folder . 
periodic build is not the right fit for my requirement :( 

On Friday, June 2, 2017 at 7:45:32 AM UTC-7, Terry Lacy wrote:
Okay that must be from a plugin? I don't have that in my install. Is that really the syntax for the Schedule setting?

I located the ScriptTrigger plugin (<a href="https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins-ci.org%2Fdisplay%2FJENKINS%2FScriptTrigger%2BPlugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHu47FjfzSl33PT8kmVfgMKijFKQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins-ci.org%2Fdisplay%2FJENKINS%2FScriptTrigger%2BPlugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHu47FjfzSl33PT8kmVfgMKijFKQg&#39;;return true;">https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin). It's not really clear from their documentation what the syntax for the Schedule field is, either. Their example in their documentation image might be bogus.

I'm just guessing the syntax is probably similar to the one for the "Build periodically" Schedule. In other words, cron syntax.(minute hour DOM (day of month) month DOW (day of week) 

See the examples for the "Build periodically" schedule field by clicking on the "?" next to that field.


On Thursday, June 1, 2017 at 5:23:38 PM UTC-6, Hemanth Shekar wrote:
I have [ScriptTrigger] - Poll with a shell or batch script checked. 
The script value is 

#!/bin/ksh
exit 9

Exit Code parameter is set to 9 


On Thursday, June 1, 2017 at 10:21:58 AM UTC-7, Terry Lacy wrote:
I assume you have "Build periodically" checked under the job's Build Triggers section.

What do you have in the "Schedule" field?

Terry

On Wednesday, May 31, 2017 at 3:01:01 PM UTC-6, Hemanth Shekar wrote:
I am using Jenkins to poll for a file in a unix directory ( Shell ) 
If the file is present running some commands as the build steps .


A manual build works but polling is not happening . 
i have polling by minute . 

The script trigger log tells 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

I need it to poll every minute 
what am i doing wrong

--
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/82224598-781e-4041-98eb-00334323cc45%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: Jenkins not polling

Gardell, Steven

Why push all of this outside of Jenkins and request the build using the REST API?

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Hemanth Shekar
Sent: Friday, June 2, 2017 1:48 PM
To: Jenkins Users <[hidden email]>
Subject: Re: Jenkins not polling

 

My requirement is that  i need to check for a condition to happen in a remote Linux server and then schedule a build . 

The condition is  i need to check some files for some patterns  in a particular folder . 

periodic build is not the right fit for my requirement :( 

 

On Friday, June 2, 2017 at 7:45:32 AM UTC-7, Terry Lacy wrote:

Okay that must be from a plugin? I don't have that in my install. Is that really the syntax for the Schedule setting?

 

I located the ScriptTrigger plugin (https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin). It's not really clear from their documentation what the syntax for the Schedule field is, either. Their example in their documentation image might be bogus.

 

I'm just guessing the syntax is probably similar to the one for the "Build periodically" Schedule. In other words, cron syntax.(minute hour DOM (day of month) month DOW (day of week) 

 

See the examples for the "Build periodically" schedule field by clicking on the "?" next to that field.



On Thursday, June 1, 2017 at 5:23:38 PM UTC-6, Hemanth Shekar wrote:

I have [ScriptTrigger] - Poll with a shell or batch script checked. 

The script value is 

 

#!/bin/ksh

exit 9

 

Exit Code parameter is set to 9 

 


On Thursday, June 1, 2017 at 10:21:58 AM UTC-7, Terry Lacy wrote:

I assume you have "Build periodically" checked under the job's Build Triggers section.

 

What do you have in the "Schedule" field?

 

Terry

On Wednesday, May 31, 2017 at 3:01:01 PM UTC-6, Hemanth Shekar wrote:

I am using Jenkins to poll for a file in a unix directory ( Shell ) 

If the file is present running some commands as the build steps .

 

 

A manual build works but polling is not happening . 

i have polling by minute . 

 

The script trigger log tells 

 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

 

I need it to poll every minute 

what am i doing wrong

--
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/82224598-781e-4041-98eb-00334323cc45%40googlegroups.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/CY1PR0301MB199670A1AA38D496493B3B32B8F70%40CY1PR0301MB1996.namprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jenkins not polling

Hemanth Shekar
Please elaborate 

On Fri, Jun 2, 2017 at 11:35 AM, Gardell, Steven <[hidden email]> wrote:

Why push all of this outside of Jenkins and request the build using the REST API?

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Hemanth Shekar
Sent: Friday, June 2, 2017 1:48 PM
To: Jenkins Users <[hidden email]>
Subject: Re: Jenkins not polling

 

My requirement is that  i need to check for a condition to happen in a remote Linux server and then schedule a build . 

The condition is  i need to check some files for some patterns  in a particular folder . 

periodic build is not the right fit for my requirement :( 

 

On Friday, June 2, 2017 at 7:45:32 AM UTC-7, Terry Lacy wrote:

Okay that must be from a plugin? I don't have that in my install. Is that really the syntax for the Schedule setting?

 

I located the ScriptTrigger plugin (https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin). It's not really clear from their documentation what the syntax for the Schedule field is, either. Their example in their documentation image might be bogus.

 

I'm just guessing the syntax is probably similar to the one for the "Build periodically" Schedule. In other words, cron syntax.(minute hour DOM (day of month) month DOW (day of week) 

 

See the examples for the "Build periodically" schedule field by clicking on the "?" next to that field.



On Thursday, June 1, 2017 at 5:23:38 PM UTC-6, Hemanth Shekar wrote:

I have [ScriptTrigger] - Poll with a shell or batch script checked. 

The script value is 

 

#!/bin/ksh

exit 9

 

Exit Code parameter is set to 9 

 


On Thursday, June 1, 2017 at 10:21:58 AM UTC-7, Terry Lacy wrote:

I assume you have "Build periodically" checked under the job's Build Triggers section.

 

What do you have in the "Schedule" field?

 

Terry

On Wednesday, May 31, 2017 at 3:01:01 PM UTC-6, Hemanth Shekar wrote:

I am using Jenkins to poll for a file in a unix directory ( Shell ) 

If the file is present running some commands as the build steps .

 

 

A manual build works but polling is not happening . 

i have polling by minute . 

 

The script trigger log tells 

 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

 

I need it to poll every minute 

what am i doing wrong

--
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/82224598-781e-4041-98eb-00334323cc45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/Pi2RFvGikPs/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/CY1PR0301MB199670A1AA38D496493B3B32B8F70%40CY1PR0301MB1996.namprd03.prod.outlook.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/CAB4KzzaPpkZWB5Wfdp9NVWX5Ymx2yVjCNCdh_1RGYfYoUmQCCA%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: Jenkins not polling

Gardell, Steven

It seems roughly analogous to triggering a build externally from an SCM. This is one of the options when configuring builds.

See “Build Triggers” and then “Trigger Builds Remotely (e.g. From Scripts).

 

What we do is have SCM (in our case Perforce) triggers that kick off builds. But I don’t see any reason that needs to be an “SCM” event; it could be a cron (or some other daemon) job that is watching for some event and then kicking off the build.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Hemanth Shekar
Sent: Friday, June 2, 2017 2:47 PM
To: [hidden email]
Subject: Re: Jenkins not polling

 

Please elaborate 

 

On Fri, Jun 2, 2017 at 11:35 AM, Gardell, Steven <[hidden email]> wrote:

Why push all of this outside of Jenkins and request the build using the REST API?

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Hemanth Shekar
Sent: Friday, June 2, 2017 1:48 PM
To: Jenkins Users <[hidden email]>
Subject: Re: Jenkins not polling

 

My requirement is that  i need to check for a condition to happen in a remote Linux server and then schedule a build . 

The condition is  i need to check some files for some patterns  in a particular folder . 

periodic build is not the right fit for my requirement :( 

 

On Friday, June 2, 2017 at 7:45:32 AM UTC-7, Terry Lacy wrote:

Okay that must be from a plugin? I don't have that in my install. Is that really the syntax for the Schedule setting?

 

I located the ScriptTrigger plugin (https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin). It's not really clear from their documentation what the syntax for the Schedule field is, either. Their example in their documentation image might be bogus.

 

I'm just guessing the syntax is probably similar to the one for the "Build periodically" Schedule. In other words, cron syntax.(minute hour DOM (day of month) month DOW (day of week) 

 

See the examples for the "Build periodically" schedule field by clicking on the "?" next to that field.



On Thursday, June 1, 2017 at 5:23:38 PM UTC-6, Hemanth Shekar wrote:

I have [ScriptTrigger] - Poll with a shell or batch script checked. 

The script value is 

 

#!/bin/ksh

exit 9

 

Exit Code parameter is set to 9 

 


On Thursday, June 1, 2017 at 10:21:58 AM UTC-7, Terry Lacy wrote:

I assume you have "Build periodically" checked under the job's Build Triggers section.

 

What do you have in the "Schedule" field?

 

Terry

On Wednesday, May 31, 2017 at 3:01:01 PM UTC-6, Hemanth Shekar wrote:

I am using Jenkins to poll for a file in a unix directory ( Shell ) 

If the file is present running some commands as the build steps .

 

 

A manual build works but polling is not happening . 

i have polling by minute . 

 

The script trigger log tells 

 

[ScriptTrigger] - Poll with a shell or batch script

Polling has not run yet.

 

I need it to poll every minute 

what am i doing wrong

--
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/82224598-781e-4041-98eb-00334323cc45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/Pi2RFvGikPs/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/CY1PR0301MB199670A1AA38D496493B3B32B8F70%40CY1PR0301MB1996.namprd03.prod.outlook.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/CAB4KzzaPpkZWB5Wfdp9NVWX5Ymx2yVjCNCdh_1RGYfYoUmQCCA%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/CY1PR0301MB199660E94C5E1556F68B1AA0B8F70%40CY1PR0301MB1996.namprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
Loading...