SSH-Agent build feature, can not find file

Hello,
 
I am currently having a bit of a problem using the SSH agent Build feature to push a tag into a git repository.
 
 
What we want to accomplish is the following:
  1. Check out a maven based java repository from out server
  2. Start the Build and use the pme tool to adjust the version in some poms
  3. Publish the artifacts
  4. Create a tag of the version and push the tag to the server via a build script

After having setup everything, all steps except for step 4. worked. Now this was because the ssh-key used to clone the git repo was not available for the build script. Having read about the SSH agent build feature, I thought it would just as easy to add this build feature and have it use the same ssh-key.

However, as soon as I added the step, the first build step already fails because the ssh-agent can not find a file, which I am assuming is the ssh-key. Having also read the SSH key management, it states that the key is deleted after a fetch/clone of the git repo. Does this somehow affect the problem ?
 
[Step 1/1] Failed to start SSH Agent
[16:14:25][Step 1/1] 'ssh-agent -s -a D:\TC\temp\buildTmp\ssh6483391065487256145sock' command failed exception: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "ssh-agent": CreateProcess error=2, Das System kann die angegebene Datei nicht finden exit code: -1
 
Any help regarding this problem would be much appreciated.
0
1 comment
Avatar
Permanently deleted user

Okay so there as a very simple problem why this did not work, we forgot the restart the build agent after adding the path to the ssh-agent. After restarting the build agent the feature works as intended.

0

Please sign in to leave a comment.