Mailinglist Archive: opensuse-buildservice (46 mails)

< Previous Next >
[opensuse-buildservice] git login credentials for obs source services
  • From: Morschhäuser, Mark <Mark.Morschhaeuser@xxxxxx>
  • Date: Wed, 20 Feb 2019 12:49:41 +0000
  • Message-id: <3352e7a59779402994fa9868e4893422@mailex1b.dsa.local>

I have a git host that requires logins and I want to use the obs_scm service
without providing a url like user:login@host/... for every package.
So I created a .gitconfig & .git-credentials file for the obsservicerun user in
the obsservicerun home directory (/usr/lib/obs according to passwd) with read
permissions but it seems that this file is not used by the service. If I
execute the checkout command from src_service.log manually it works though.
How should this be done? Do I use the wrong user account?

I get this error

service tar_scm failed:
ERROR(128): "Cloning into '/srv/obs/service/11565/out/tmpLgoRio/testpackage'...
fatal: could not read Username for 'http://giturl/foo': No such device or
address <- if I use user@host, I get "could not read
Password" instead
Traceback (most recent call last):
File "/usr/lib/obs/service//tar_scm", line 30, in
File "/usr/lib/obs/service//tar_scm", line 26, in main
File "/usr/lib/obs/service/TarSCM/", line 35, in run
File "/usr/lib/obs/service/TarSCM/", line 116, in process_list
File "/usr/lib/obs/service/TarSCM/", line 184, in process_single_task
File "/usr/lib/obs/service/TarSCM/scm/", line 90, in fetch_upstream
File "/usr/lib/obs/service/TarSCM/scm/", line 91, in fetch_upstream_scm
<- that basically executes git clone <what> <where>
os.removedirs(os.path.join(wdir, self.clone_dir))
File "/usr/lib64/python2.7/", line 170, in removedirs
OSError: [Errno 2] No such file or directory:


To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >