Started by user admin
[Wed Jun 18 07:51:27 UTC 2025] Starting branch indexing...
> git --version # timeout=10
> git --version # 'git version 2.39.5'
using GIT_SSH to set credentials
Verifying host key using known hosts file
You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification.
> git ls-remote --symref -- git@192.168.0.100:/home/git/gbdf.git # timeout=10
ERROR: [Wed Jun 18 07:51:27 UTC 2025] Could not update folder level actions from source 449cdbd1-e3cc-4be6-88e9-b012cd419e98
[Wed Jun 18 07:51:27 UTC 2025] Finished branch indexing. Indexing took 0.16 sec
FATAL: Failed to recompute children of gbdf
hudson.plugins.git.GitException: Command "git ls-remote --symref -- git@192.168.0.100:/home/git/gbdf.git" returned status code 128:
stdout:
stderr: No ED25519 host key is known for 192.168.0.100 and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2852)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2188)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2084)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2075)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteSymbolicReferences(CliGitAPIImpl.java:3853)
at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:1186)
Caused: java.io.IOException
at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:1188)
at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:847)
at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:618)
at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:272)
at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:170)
at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1064)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:454)
Finished: FAILURE
The error occurs because Jenkins cannot verify the SSH host key for your Git server (192.168.0.100) due to strict host key checking. Here's how to resolve it:
1. **Add the Git server's host key to Jenkins' known_hosts file**:
# Switch to the Jenkins user (if needed)
sudo su - jenkins
# Add the host key (replace IP with your server's IP)
ssh-keyscan -H 192.168.0.100 >> ~/.ssh/known_hosts
2. **Verify the key was added**:
cat ~/.ssh/known_hosts | grep 192.168.0.100
### Alternative Jenkins UI Method:
1. Go to **Manage Jenkins → Security → Git Host Key Verification Configuration**
2. Select **Manually provided keys**
3. Add the server's host key obtained via:
ssh-keyscan 192.168.0.100
4. Paste the output into the text area and save
### Why This Works:
- The error `Host key verification failed` indicates Jenkins doesn't trust the Git server's SSH key
- Adding the key to `known_hosts` explicitly approves the server's identity
- The manual UI method achieves the same result without CLI access
After applying either solution, restart the Jenkins job. The connection should now succeed as Jenkins can verify the server's identity.