Am Freitag, dem 26.04.2024 um 15:38 +0200 schrieb Erick Mormin:

We are still encountering difficulties with fetching the Git repository in 
Jenkins. Despite our efforts, Jenkins prompts for a password when attempting to 
clone the repository, which is unexpected behavior for SSH authentication.

That depends. If you're NOT using an SSH key, it will of course prompt for a 
password.

root@easyformer:~# docker ps
CONTAINER ID   IMAGE                     COMMAND                  CREATED      
STATUS                  PORTS                                                   
                                                                      NAMES
016ce5d64dcb   jenkins/jenkins:lts       "/usr/bin/tini -- /u…"   8 days ago   
Up 5 hours              0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 
0.0.0.0:50000->50000/tcp, :::50000->50000/tcp                                   
   jenkins
b777b84a524b   gitlab/gitlab-ce:latest   "/assets/wrapper"        8 days ago   
Up 25 hours (healthy)   0.0.0.0:40022->22/tcp, :::40022->22/tcp, 
0.0.0.0:40080->80/tcp, :::40080->80/tcp, 0.0.0.0:40443->443/tcp, 
:::40443->443/tcp   gitlab
root@easyformer:~# docker exec -it jenkins bash
jenkins@192:/tmp$ git clone git@192.168.0.24:Berechit/easyformer.git
Cloning into 'easyformer'...
git@192.168.0.24<mailto:git@192.168.0.24>'s password:

OK, you're running this inside a Docker container, so I guess you need to get 
the private key you use for authenticating to your GitLab server into this 
container somehow.

OTOH, to get this working inside your job, you need to make sure that the 
credential record you select in the SCM section is an SSH credential, not a 
"username/password" one.

Bye...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com<mailto:dhein...@opentext.com>
Website: 
www.recommind.de<mail://ab5defde1fa49913f64f8482009c4be447b3cf96/Gesendete%20Elemente/www.recommind.de>
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d58a728f2e383e850f9e9683285051ffaebb67b1.camel%40opentext.com.

Reply via email to