URLTrigger and content inspection

219 views
Skip to first unread message

Schalk Cronjé

unread,
Oct 16, 2013, 9:37:57 AM10/16/13
to jenkins...@googlegroups.com
I am trying to monitor a remote Jenkins using the URLTrigger. I set monitoring to look at a XML content change in the build number i.e. using xpath of //number/text().

All I get is the following in the Trigger Log

[URLTrigger] - Poll with a URL

Polling started on Oct 16, 2013 7:56:50 PM
Polling for the job JOB_NAME
Looking nodes where the poll can be run.
Looking for a node to the restricted label master.
Restrict on master label. Polling on master.

Polling on master.
Invoking the url: 
 http://OTHER_JENKINS_URL/job/OTHER_JOB_NAME/lastSuccessfulBuild/api/xml
Inspecting the content
[ERROR] - Polling error...
[ERROR] - Error message: The size between old results and new results has to be the same.

I have tried the same with a JSON trying both .number and lastSuccessfulBuild.number as JSON paths. Results are still the same.

Any ideas?

Versions: Jenkins = 1.531, URLTrigger Plugin = 0.35, XTrigger Plugin= 0.54

James Nord (jnord)

unread,
Oct 16, 2013, 9:56:19 AM10/16/13
to jenkins...@googlegroups.com

Hi Schalk,

 

Poll job/lastSuccessfulBuild/buildNumberinstead and skip the whole xpath  - it will work and be lighter weight on the target server J

 

/James

 

 

 

--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Schalk Cronjé

unread,
Oct 16, 2013, 10:11:57 AM10/16/13
to jenkins...@googlegroups.com, jn...@cisco.com
Thanks James. That works quite well and solves my issue.

I am still unclear though, why the XML and JSON content inspections failed.

CLOSE Dave

unread,
Oct 17, 2013, 12:57:04 PM10/17/13
to jenkins...@googlegroups.com
I recently updated to 1.535 on Linux x86_64. A job which failed
yesterday now shows a red icon (as it should) but the "last failure"
column shows "1 mo 3 days" whereas the "last success" column shows "1
day 16 hr". Those dates imply that the most recent build was successful,
which it wasn't. What am I missing?
--
Dave Close

Mishael Kim

unread,
Oct 17, 2013, 6:37:17 PM10/17/13
to jenkins...@googlegroups.com


--
Dave Close

CLOSE Dave

unread,
Oct 17, 2013, 6:56:00 PM10/17/13
to jenkins...@googlegroups.com
I wrote:
> I recently updated to 1.535 on Linux x86_64. A job which failed
> yesterday now shows a red icon (as it should) but the "last failure"
> column shows "1 mo 3 days" whereas the "last success" column shows "1
> day 16 hr". Those dates imply that the most recent build was successful,
> which it wasn't. What am I missing?

Mishael Kim suggested:
Thanks but no. I've seen the most recent job disappear from the history
list occasionally, but only for a moment then it reappears. In this
case, the failed build does show at the top of the history but is not
reflected in the "last failure" column.
--
Dave Close, Thales Avionics, Irvine California USA.
cell +1 949 394 2124, dave....@us.thalesgroup.com
Reply all
Reply to author
Forward
0 new messages