Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » Calling Klocwork from Hudson(To call Klocwork run from Hudson after successful build)
Calling Klocwork from Hudson [message #901744] Tue, 14 August 2012 12:51 Go to next message
Sreeram Balachandran is currently offline Sreeram BalachandranFriend
Messages: 5
Registered: July 2012
Junior Member
Hi,

I have two Virtual Machines. In one, I have installed Hudson and the other one for Klocwork. I am now able to build the scripts successfully. But I am not able to call Klocwork which is in the Virtual machine 2 from VM1. I use the following script given below;

if [ $Klocwork = "true" ]; then
echo "Starting Klocwork Report ..."
sshpass -p 'password' ssh hostname "sudo chmod work dir/build_script_kw.sh;/workdir/build_script_kw.sh $SVNID $Version"
fi

Please guide me to fix this issue.

Thanks,
Sreeram
Re: Calling Klocwork from Hudson [message #902136 is a reply to message #901744] Thu, 16 August 2012 06:17 Go to previous messageGo to next message
Steve Christou is currently offline Steve ChristouFriend
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

Are permissions set up correctly? Try to ping the other machine. Also what kind of errors are you seeing? Stacktraces?

/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Re: Calling Klocwork from Hudson [message #903361 is a reply to message #902136] Thu, 23 August 2012 10:46 Go to previous messageGo to next message
Sreeram Balachandran is currently offline Sreeram BalachandranFriend
Messages: 5
Registered: July 2012
Junior Member
Hi Steve,

I am able to ping the machine. Packets are received and sent. When I try to invoke Klocwork from Machine-1 to Machine-2, I receive the following Error:"Host key verification failed". I have given all permissions. Yet it throws the same error.

Thanks,
Sreeram B
Re: Calling Klocwork from Hudson [message #903464 is a reply to message #903361] Thu, 23 August 2012 17:32 Go to previous message
Steve Christou is currently offline Steve ChristouFriend
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

"Host key verification failed" error is with ssh itself. This probably means that the ssh key that was generated on the host does not match the one that's in your ~/.ssh/known_hosts. To fix this you need to modify that file and either remove the line for Machine-2 or you can run the command "ssh-keygen -R hostname" where hostname is Machine-2. That command will try to establish a remote connection and redownload the public key for you.

/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Previous Topic:Issue with Jira credentials on Hudson configuration page
Next Topic:GIT No changes on repo -> Nothing to do FAILURE
Goto Forum:
  


Current Time: Fri Apr 19 19:54:30 GMT 2024

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

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

Back to the top