Bazaar Plugin for hudson (Continuous integration tool)

Asked by Vijaya Kumar

Hi,

I have installed the Bazaar plugin for hudson and I couldn’t able to set up the job for our build.
The bazaar commands via hudson plugin fails but the same command through the command prompt works fine. I have given complete permission to repository and tried, even it fails after.

Hudson Log:-
Getting local revision...
$ bzr revision-info -d C:\HUDSON\home\jobs\OnScreenSimpleSetup\workspace
null
Getting current remote revision...$ bzr revision-info -d P:\Products\repo\HC11\OnScreenSimpleSetup
null
Baseline is null.
ERROR: Failed to record SCM polling
java.lang.NullPointerException
 at hudson.plugins.bazaar.BazaarSCM.compareRemoteRevisionWith(BazaarSCM.java:174)
  ……
Cleaning workspace...
$ bzr branch P:\Products\repo\HC11\OnScreenSimpleSetup C:\HUDSON\home\jobs\OnScreenSimpleSetup\workspace
ERROR: Failed to clone P:\Products\repo\HC11\OnScreenSimpleSetup
java.io.IOException: Cannot run program "bzr": CreateProcess error=2, The system cannot find the file specified
 at java.lang.ProcessBuilder.start(Unknown Source)
  …..

Any idea to resolve this issue?

Thanks & Regards,
Vijay

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Vijaya Kumar
Solved:
Last query:
Last reply:
Revision history for this message
Vincent Ladeuil (vila) said :
#1

Since this is related to the *hudson* bazaar plugin, you'd get better feedback by asking the jenkins (was hudson) community.

But let's try to help you anyway.

Getting local revision...
$ bzr revision-info -d C:\HUDSON\home\jobs\OnScreenSimpleSetup\workspace
null
Getting current remote revision...$ bzr revision-info -d P:\Products\repo\HC11\OnScreenSimpleSetup
null
Baseline is null.

Both commands fail to find a revision at the given path. Are you sure your jenkins master (or slave ?) is properly configured ? Are the same volumes mapped in the master as when you try from command line ?

Revision history for this message
John A Meinel (jameinel) said :
#2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/16/2011 9:01 AM, Vincent Ladeuil wrote:
> Question #168113 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/168113
>
> Status: Open => Answered
>
> Vincent Ladeuil proposed the following answer: Since this is related
> to the *hudson* bazaar plugin, you'd get better feedback by asking
> the jenkins (was hudson) community.
>
> But let's try to help you anyway.
>
> Getting local revision... $ bzr revision-info -d
> C:\HUDSON\home\jobs\OnScreenSimpleSetup\workspace null Getting
> current remote revision...$ bzr revision-info -d
> P:\Products\repo\HC11\OnScreenSimpleSetup null Baseline is null.
>
> Both commands fail to find a revision at the given path. Are you sure
> your jenkins master (or slave ?) is properly configured ? Are the
> same volumes mapped in the master as when you try from command line
> ?
>

It looks like it might be the initial revision of the branch (no commits
yet). So "bzr init $LOCATION" without "bzr commit" yet.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5KIpwACgkQJdeBCYSNAANALQCgqq2VTnspo/mrPiGgWd/vXC/3
VS8AoMyuKUCRgGyfPtqf13HHXyND5uC7
=fGyX
-----END PGP SIGNATURE-----

Revision history for this message
Vijaya Kumar (vijayakumar-cm) said :
#3

Hi all,

The issue is with m/c settings, i got it run in different m/c.
But i couldn't find out what was that setting missed out :(

Thanks for your support.

Regards,
Vijay