I’m posting this so that users who may run into this can have some help debugging.
Sample error from clone step:
Initialized empty Git repository in /drone/src/.git/
+ git fetch origin +refs/heads/master:
fatal: could not read Username for 'https://git.domain.com/': No such device or address
Some starter steps to help diagnose what could be happening:
- create a new repo and add the following content into a new .drone.yml
- activate the repo
- cause a build to trigger
- look at results of debug step to see if curl can access your gitea install (if not, then it is likely a networking issue, perhaps your drone install isn’t on same network as your gitea install)
kind: pipeline
name: default
clone:
disable: true
steps:
- name: debug
image: alpine
commands:
- env
- ls -lah
- apk add --no-cache git curl
- echo $DRONE_REPO_PRIVATE
- curl -v $DRONE_GIT_HTTP_URL
Related discussions (if this post doesn’t help, then others may):
http://discuss.harness.io/t/solved-git-clone-step-adding-wrong-origin-address/2846
http://discuss.harness.io/t/cant-clone-private-gogs-repository-in-1-0-0-rc-4-no-such-device-or-address/3530
http://discuss.harness.io/t/solved-cannot-clone-gitea-repository-missing-server-url/1679