The Gitea service in the Jenkins Basics lab tends to fail quite often. Since I’m a beginner, I initially thought I was doing something wrong. But after restarting the lab more than once, the links eventually started working and sometimes it doesn’t. please help
Started by user admin
ERROR: Unable to find Jenkinsfile from git http://git-server:3000/max/node-app.git
Finished: FAILURE
A link to a specific lab (perhaps with an image of what you’re seeing when it “doesn’t work”) will help me figure out what the problem is here. In general, gitea usually works, but you may need a bit of finesse to figure out what’s the correct URL to use in a lab; usually it is not something like “git-server”. More information will help me figure out what you’re doing here.
I’ve also seen similar issues in that lab. For me, the Gitea container sometimes doesn’t start up properly, which causes the repo URL (like git-server:3000
) to fail to resolve in Jenkins. Restarting the lab helps sometimes, but not consistently. I think you’re right that a clearer idea of the actual Gitea hostname or IP inside the lab environment might help here. Maybe there’s a DNS delay or container sequencing issue at play. C
Hi Rob this is the link for the lab I’m talking about-Jenkins For Beginners Course | KodeKloud
I’m not seeing a problem with I try this. git-server
resolves to an IP on the local network, and I can do git clone from a git-server
URL:
# This works:
oot@jenkins-server ~ ➜ git clone http://git-server:3000/max/node-app.git test-app
Cloning into 'test-app'...
remote: Enumerating objects: 695, done.
remote: Counting objects: 100% (695/695), done.
remote: Compressing objects: 100% (524/524), done.
remote: Total 695 (delta 118), reused 695 (delta 118), pack-reused 0
Receiving objects: 100% (695/695), 717.24 KiB | 28.69 MiB/s, done.
Resolving deltas: 100% (118/118), done.
Coud you please explain a bit more as to what “isn’t working”?
Hi rob thanks for your response but I’m unable to attach the screenshot or pdf is there anyway I can reach out to you?