Bazaar and Hudson
Guillermo Gonzalez
guillo.gonzo at gmail.com
Sun Oct 26 17:42:01 GMT 2008
Hi Matt,
On Sun, Oct 26, 2008 at 2:30 PM, Matt McClure <mlm at aya.yale.edu> wrote:
> Hi Guillermo,
>
> On Fri, Oct 17, 2008 at 3:48 AM, Guillermo Gonzalez
> <guillo.gonzo at gmail.com> wrote:
>> After ~1 1/2 days of playing with Hudson I have a working bazaar plugin. It's not fully implemented (or tested), but it's working quite well.
>> Consider it a preview ;-)
>
> Thanks for writing the Bazaar plugin for Hudson! I'm trying it out
> for bzr-p4 (https://edge.launchpad.net/bzrp4). I have a Hudson job
> that gets code from Bazaar and runs my tests, and I can trigger it
> manually.
>
Great, thanks for trying it out.
> I haven't been able to get polling working. In the Hudson UI, I see:
>
> Last Bazaar Polling Log
>
> Started on Oct 26, 2008 12:22:44 PM
> Fetching remote revision-info
> Unable to get version-info from
> /home/mlm/sandbox/bzr-p4/bzr/continuous.integration.windows
> Done. Took 0 sec
> No changes
>
>
> In the console window where I started Hudson, I see:
>
> Oct 26, 2008 12:22:44 PM hudson.plugins.bazaar.BazaarSCM pollChanges
> SEVERE: 3
> java.lang.ArrayIndexOutOfBoundsException: 3
> at hudson.plugins.bazaar.BazaarSCM.getRevno(BazaarSCM.java:180)
> at hudson.plugins.bazaar.BazaarSCM.pollChanges(BazaarSCM.java:139)
[snip]
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.
>
>
> 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
>
> 2. Download/install Bazaar 1.8 Windows installer from
> https://launchpad.net/bzr/+download . Add Bazaar to PATH.
>
> 3. Download/install bzr-xmloutput from lp:bzr-xmloutput via bzr branch.
> See http://bazaar-vcs.org/XMLOutput .
>
> 4. java -jar hudson.war . Point browser at http://localhost:8080/ .
>
> Note: maybe need larger heap size. -Xmx1024m ?
>
> 5. Download Bazaar plugin for Hudson from
> http://verterok.com.ar/bzr-hudson/bazaar.hpi . Install via Hudson web
> UI.
>
> 6. New Job in Hudson. Job name = bzrp4, e.g. Build a
> free-style software project.
>
> 7. Advanced Project Options > Use custom workspace. Directory =
> C:\Documents and Settings\mlm\.hudson\jobs\bzrp4\workspace\bzrp4 , i.e.,
> a path ending in "bzrp4". Otherwise, Hudson uses the path ending in
> "workspace". That doesn't work because bzr selftest relies on loading
> the bzrp4 plugin from a path ending in "bzrp4".
>
> 8. Source Code Management > Bazaar. Branch URL =
> /home/mlm/sandbox/bzr-p4/bzr/continuous.integration.windows . I tried
> C:\home\... but it didn't work because Hudson's URL parsing rejected the
> URL containing backslashes.
>
> 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?
Regards,
--Guillermo.
>
> Matt
>
More information about the bazaar
mailing list