Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » Hudson Git Job Calling Hg Status
Hudson Git Job Calling Hg Status [message #1738271] Mon, 18 July 2016 14:40 Go to next message
Shelli Orton is currently offline Shelli OrtonFriend
Messages: 101
Registered: September 2009
Senior Member
We are migrating from a Mercurial repo to a Git repo and my new Hudson build that is set to use Git is calling "hg status". We are using Hudson 3.3.2. The job is configured as a Maven 3 build calling "release:prepare release:perform" goals and to use source from a Git repo.

When the job executes, it correctly pulls the repo from our Git repo using git commands, but then it calls an "hg status" command. I can't figure out why. There doesn't seem to be anything in the project or the Hudson build config that uses Hg.

Build logs:
Started by user sdoca
Checkout:workspace / /var/lib/hudson/teams/Test/jobs/Test.Git Test Jar - Release/workspace - hudson.remoting.LocalChannel@3ff594be
Using strategy: Default
Git Exe: /usr/bin/git
Last Built Revision: Revision 27289567215415174b69ff9e3367698aa57e36f3 (origin/master)
Checkout:workspace / /var/lib/hudson/teams/Test/jobs/Test.Git Test Jar - Release/workspace - hudson.remoting.LocalChannel@3ff594be
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://git@pre-bitbucket.sjrb.ad:7999/sas/testjar.git
Commencing build of Revision 18cf35d04a807fb45a32f32f19a480ae66d31ff1 (origin/master)
Checking out Revision 18cf35d04a807fb45a32f32f19a480ae66d31ff1 (origin/master)
[INFO] Using bundled Maven 3 installation
[INFO] Checking Maven 3 installation environment
[workspace] $ /var/lib/hudson/maven/slavebundle/bundled-maven/bin/mvn --help
[INFO] Checking Maven 3 installation version
[INFO] Detected Maven 3 installation version: 3.1.1
[workspace] $ /var/lib/hudson/maven/slavebundle/bundled-maven/bin/mvn release:prepare release:perform -V -B -Dmaven.ext.class.path=/var/lib/hudson/maven/slavebundle/resources:/var/lib/hudson/maven/slavebundle/lib/maven3-eventspy-3.1.jar:/var/lib/hudson/war/webapp/WEB-INF/lib/hudson-remoting-3.0.3.jar -Dhudson.eventspy.port=33385 -f pom.xml
[DEBUG] Waiting for connection on port: 33385
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 09:22:22-0600)
Maven home: /var/lib/hudson/maven/slavebundle/bundled-maven
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.7.0_79/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.el6.x86_64", arch: "amd64", family: "unix"
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/var/lib/hudson/maven/slavebundle/lib/maven3-eventspy-runtime.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/var/lib/hudson/maven/slavebundle/bundled-maven/lib/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[DEBUG] Connected to remote
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building TestJar 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-release-plugin:2.2.2:prepare (default-cli) @ TestJar ---
[INFO] Resuming release from phase 'scm-check-modifications'
[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: pom.xml.next, release.properties, pom.xml.releaseBackup, pom.xml.backup, pom.xml.branch, pom.xml.tag
[INFO] EXECUTING: /bin/sh -c cd "/var/lib/hudson/teams/Test/jobs/Test.Git Test Jar - Release/workspace" && hg status
[INFO] Not a file: /var/lib/hudson/teams/Test/jobs/Test.Git Test Jar - Release/workspace/abort: no repository found in '/var/lib/hudson/teams/Test/jobs/Test.Git Test Jar - Release/workspace' (.hg not found)!. Ignoring
[ERROR] 
EXECUTION FAILED
  Execution of cmd : status failed with exit code: 255.
  Working directory was: 
    /var/lib/hudson/teams/Test/jobs/Test.Git Test Jar - Release/workspace
  Your Hg installation seems to be valid and complete.
    Hg version: 3.4.2 (OK)

[Updated on: Mon, 18 July 2016 15:39]

Report message to a moderator

Re: Hudson Git Job Calling Hg Status [message #1738548 is a reply to message #1738271] Wed, 20 July 2016 19:01 Go to previous messageGo to next message
Shelli Orton is currently offline Shelli OrtonFriend
Messages: 101
Registered: September 2009
Senior Member
I have been trying to do a release:prepare release:perform Maven build locally just to ensure that there isn't something wonky with the project set up and it works. So, I think it must be a problem with the Hudson plugin...
Re: Hudson Git Job Calling Hg Status [message #1744157 is a reply to message #1738548] Thu, 22 September 2016 21:55 Go to previous message
Shelli Orton is currently offline Shelli OrtonFriend
Messages: 101
Registered: September 2009
Senior Member
Hi I am resurrecting this question as it is still a problem for us. Does anybody have any ideas why the Hudson plugin is calling hg on a git build? We cannot do release builds in Hudson and have to do them locally as a workaround (not an ideal situation).

BTW, I have removed the Mercurial plugin from Hudson (and restarted the server) to see if that fixes things in our lab environment and it doesn't. Not that it would have been a possible solution in prod as we need to access both Mercurial and Git repos.

[Updated on: Fri, 23 September 2016 14:30]

Report message to a moderator

Previous Topic:Hudson 3.4.0 Planning
Next Topic:Hudson Starteam plugin fails after switching from http to https config
Goto Forum:
  


Current Time: Thu Oct 03 23:39:43 GMT 2024

Powered by FUDForum. Page generated in 0.03322 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top