Jump to content

Polling a repository in Jenkins CI


Recommended Posts

Hi all

I am a newbie in plasticscm and trying to set up a build project in jenkins ci server. I can successfully update the workspace and build my project, however, it fails to poll the repository for changes.

Here the log output:

Started on Nov 15, 2012 7:00:17 PM

[workspace] $ cm wi --machinereadable --fieldseparator=def#_#sep

ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@7488485f[TakePlace Website]

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1937)

at hudson.Launcher.inherit(Launcher.java:1068)

at hudson.Launcher.access$100(Launcher.java:80)

at hudson.Launcher$LocalLauncher.launch(Launcher.java:756)

at hudson.Launcher$2.launch(Launcher.java:723)

at hudson.Launcher$ProcStarter.start(Launcher.java:346)

at com.codicesoftware.plugins.hudson.PlasticTool.execute(PlasticTool.java:78)

at com.codicesoftware.plugins.hudson.model.Server.execute(Server.java:38)

at com.codicesoftware.plugins.hudson.model.Server.getChangesets(Server.java:49)

at com.codicesoftware.plugins.hudson.model.Server.getBriefHistory(Server.java:134)

at com.codicesoftware.plugins.hudson.PlasticSCM.pollChanges(PlasticSCM.java:144)

at hudson.scm.SCM.poll(SCM.java:375)

at hudson.model.AbstractProject._poll(AbstractProject.java:1471)

at hudson.model.AbstractProject.poll(AbstractProject.java:1404)

at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)

at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)

at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

Here's the output when I run the above command manually in the workspace:

cm wi --machinereadable --fieldseparator=def#_#sep


Jenkins is runnning version 1.489 and the PlasticSCM plugin is version 2.0

Anybody knows how to fix this?

Link to comment
Share on other sites

Hi Manu, thanks for the suggestion Find below the top of the log. What is strange is that there is no entry between 15:35 and 16:15.. The first one was done by me manually in a console as the jenkins user to test the loging and the second one was running the build job from jenkins after clearing the workspace to force jenkins to checkout the sources. The polling takes place every 5 minutes, it has been running between the two entries. I guess is is not executing the call properly, hence no entry in the log and an error parsing the answer.. still, I don't know how to proceed.

2012-11-16 15:35:39,290 INFO 724944704 cm - STARTING CLIENT

2012-11-16 15:35:39,503 DEBUG 724944704 ClientConfig - Time loading client.conf (/var/lib/jenkins/.plastic4/client.conf) 166 ms

2012-11-16 16:15:49,799 INFO -1442539712 cm - STARTING CLIENT

2012-11-16 16:15:50,012 DEBUG -1442539712 ClientConfig - Time loading client.conf (/var/lib/jenkins/.plastic4/client.conf) 166 ms

2012-11-16 16:15:52,109 INFO 413472576 cm - STARTING CLIENT

2012-11-16 16:15:52,322 DEBUG 413472576 ClientConfig - Time loading client.conf (/var/lib/jenkins/.plastic4/client.conf) 166 ms

2012-11-16 16:15:52,613 DEBUG 413472576 UserInfo - Time retrieving CurrentUser 11 ms

2012-11-16 16:15:52,698 INFO 413472576 BufferPool - [sinkcompressionPool] BufferPool created with 5.00 Mb size and 5 max buffers

2012-11-16 16:15:52,699 INFO 413472576 BufferPool - [uncompressionPool] BufferPool created with 5.00 Mb size and 5 max buffers

2012-11-16 16:15:52,824 DEBUG 413472576 Channel - Create conection 49 ms. (host:hitux port:8087 ssl:False)

2012-11-16 16:15:52,870 DEBUG 413472576 BufferPool - -> Entering with name SinkcompressionPool (5)

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...