hacklanta / hubot-yardmaster

Hubot plugin to control jobs on Jenkins CI
http://hacklanta.com/
MIT License
13 stars 6 forks source link

RangeError on watch command #23

Closed pontius closed 8 years ago

pontius commented 8 years ago

Running "hubot watch job " gives me the following error:

Aug 08 15:44:08 server hubot[3080]: [Mon Aug 08 2016 15:44:08 GMT+0200 (CEST)] INFO [Incoming] pontius: hubot watch job https://<server>/job/<jobname>
Aug 08 15:44:08 server hubot[3080]: [Mon Aug 08 2016 15:44:08 GMT+0200 (CEST)] INFO Message sent to hubot brain.
Aug 08 15:44:09 server hubot[3080]: [Mon Aug 08 2016 15:44:09 GMT+0200 (CEST)] ERROR RangeError: Maximum call stack size exceeded
Aug 08 15:44:09 server hubot[3080]:   at RegExp.test (native)
Aug 08 15:44:09 server hubot[3080]:   at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:503:3, <js>:589:26)
Aug 08 15:44:09 server hubot[3080]:   at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:507:5, <js>:593:14)
Aug 08 15:44:09 server hubot[3080]:   at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:507:5, <js>:593:14)
Aug 08 15:44:09 server hubot[3080]:   at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:507:5, <js>:593:14)
[...]
riveramj commented 8 years ago

For this command, it's hubot watch job https://<server>/job/<jobName>/<jobNumber>.

The intent behind this command was to allow Hubot to watch long running jobs and inform you when the specific job was done.

pontius commented 8 years ago

Hmm, ok. Looks like I misunderstood the command then... Sorry. :flushed:

riveramj commented 8 years ago

is there something else that you were trying to do? Also I will try to make that a bit clearer.