Bazaar and Hudson
Matt McClure
mlm at aya.yale.edu
Mon Oct 27 02:37:12 GMT 2008
On Sun, Oct 26, 2008 at 1:42 PM, Guillermo Gonzalez
<guillo.gonzo at gmail.com> wrote:
> On Sun, Oct 26, 2008 at 2:30 PM, Matt McClure <mlm at aya.yale.edu> wrote:
> It seems you have an old version of the plugin, I can be sure of that
> because I removed the method getRevno :)
>
> I'm still trying to build the .hpi with the version number included,
> no luck yet.
> In the meantime, to avoid this, I'll create directories for each build
> like: http://verterok.com.ar/bzr-hudson/20081026
>
> I uploaded a new build, to that url. With this version the polling should work.
With the new version, my build fails, even with a manual trigger,
i.e., when I click "Build Now". I get the exception below:
Executing: version-info bzrp4
�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������FATAL:
1
java.lang.ArrayIndexOutOfBoundsException: 1
at org.vcs.bazaar.client.BazaarVersionInfo.parse(BazaarVersionInfo.java:23)
at org.vcs.bazaar.client.commandline.CommandLineClient.versionInfo(CommandLineClient.java:469)
at hudson.plugins.bazaar.tasks.VersionInfoTask.invoke(VersionInfoTask.java:34)
at hudson.plugins.bazaar.tasks.VersionInfoTask.invoke(VersionInfoTask.java:1)
at hudson.plugins.bazaar.tasks.BazaarTask.invoke(BazaarTask.java:42)
at hudson.FilePath.act(FilePath.java:388)
at hudson.plugins.bazaar.BazaarSCM.getRevisions(BazaarSCM.java:288)
at hudson.plugins.bazaar.BazaarSCM.buildEnvVars(BazaarSCM.java:226)
at hudson.model.AbstractBuild.getEnvVars(AbstractBuild.java:388)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:54)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:34)
at hudson.model.Build$RunnerImpl.build(Build.java:138)
at hudson.model.Build$RunnerImpl.doRun(Build.java:113)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:240)
at hudson.model.Run.run(Run.java:793)
at hudson.model.Build.run(Build.java:88)
at hudson.model.ResourceController.execute(ResourceController.java:70)
at hudson.model.Executor.run(Executor.java:88)
I see you added a new "Local branch directory" field. Thanks! I set
that to "bzrp4". I tried with Advanced Project Options > Use custom
workspace > Directory set as before, and with it unset now that I can
specify a local branch directory. I get the above exception in both
cases.
I also tried explicitly setting Source Code Management > Working
directory to the full path to Hudson's "workspace" directory. Still
no luck.
>> Here's how I set up my Hudson job:
>>
>> 1. Download Hudson 1.255 from
>> https://hudson.dev.java.net/servlets/ProjectDocumentList?folderID=2761&expandFolder=2761&folderID=0
>>
>> ...
>>
>> 9. Build > Add build step > Execute Windows batch command . Command =
>> ci.selftest.bat .
>
> Nice tutorial! ;-)
> Can I use this as an base for a tutorial/example at the wiki?
Yes, of course.
Matt
More information about the bazaar
mailing list