Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Xian Boullosa
@Sherpard
Jenkins>Configuration>Github>Credentials>Advanced
Shared Secret
there you should configure a random string, that you should use on Gitbucket
ziggystar
@ziggystar
So I have to enter into the hook config the same credentials I enter for the global GH plugin config on Jenkins? Ok, I would have never guessed this. I'll try.
Xian Boullosa
@Sherpard
yep, that's a Shared secret, not a credential
any payload that arrives without that, will be ignored
ziggystar
@ziggystar
Argh, it's behind that advanced button. I've never looked there.
Now I can find in the Jenkins logs: Could not match URL http://mygitbucket-domain/api/v3/repos/tg/test, this also doesn't work, and it looks incorrect.
So the hook now gets through.
But it doesn't match.
Xian Boullosa
@Sherpard
that's an improvement :)
ziggystar
@ziggystar
Definately. :)
The api/v3 part looks off.
Xian Boullosa
@Sherpard
that's ok
on my API URL, i got http://gitbucket/api/v3
so seems to be OK
that seems to be looking for a repository hosted by a user/org called tg and a repo test
ziggystar
@ziggystar
I have this repo set up multiple times in Jenkins now.
Checkout from Gitbucket and branch scanning work.
Xian Boullosa
@Sherpard
I would suggest to create a new job at jenkins
new item > Github Organization
ziggystar
@ziggystar
Yes, I didn't do this, just multi branch pipeline.
Xian Boullosa
@Sherpard
go for a github organization, simplifies it quite a bit
you can build a multi-pipeline too but I'm not proficient with those :(
ziggystar
@ziggystar
I'm also receiving hooks from my other gitbucket installation, and these look like this (but they are for the wrong repository, wierdly: http://gitbucket1/git/Groupname/RepoThatDidNotReceiveACommit.git, and from the new instance I get http://gitbucket2/api/v3/repos/Group/CorrectRepo also note the missing trailing .git.
I think I should try to get a clean Jenkins and a clean GitBucket and start everything from scratch. I once got everything working. But it really took much work to get there.
ziggystar
@ziggystar
Now it's working. I think I did not change to Content-Type: Application/JSON on the webhook config. That's the problem when you try to fix something and start to change all the options you find, because you have no idea why it is not working.
The shared secret config option was the main thing I was missing, I think. Thank you very much, @Sherpard.
Xian Boullosa
@Sherpard
Glad I could help @ziggystar
Anit kumar Behera
@pinkpotato
Hi, does anyone know how to create release using gitbucket ?
I can't find any option under realeases.
Xian Boullosa
@Sherpard
@pinkpotato You have to push a TAG to your repo
after that, a release proposal will be generated under Release section, and you'll be free to finish it up, writting a text, attaching files and so on
Anit kumar Behera
@pinkpotato
ok, I'll try that. Thank you for letting me know. and thank you for quicker and descriptive reply..
Xian Boullosa
@Sherpard
you're welcome :)
Martial Garchery
@mlgarchery
is git-lfs working ok for you guys ? There is not much on it in the doc
Martial Garchery
@mlgarchery
I chose gitbucket over gitlab because I can run it on windows, and git lfs is also a feature I was looking for
ziggystar
@ziggystar
Is it possible to setup GitBucket in Intellij IDEs, so I can browse the repositories? I tried registering it as a github account (or token), but it didn't work.
Xian Boullosa
@Sherpard
@mlgarchery it works indeed, you seem to have found how it works. anyway, AFAIK ssh lfs support is not available yet
@ziggystar gitbucket api is github compatible, but keep in mind that it is not complete yet, so It's posible that some stuff wont work
probably Intellij is using something that gitbucket doesn't know how to handle yet
@mlgarchery btw, using docker you can run / manage an instance of whatever you need, even if you want to run a gitlab instance. anyway, I find gitbucket way easier to set-up and use at a low/mid scale organization
Martial Garchery
@mlgarchery
yeah but the gitlabs doc says that there is known (severe) issues for Gitlab container on Docker Windows, and until I get/rent another linux machine, my automation/build server os is Windows (because I need to have Unity3D running on it, and the linux version is not stable enough)
Now I'm trying to get the web hooks working, and you guys just commented on that, yay ! :)
Xian Boullosa
@Sherpard
If you need asistence, we may be able to give you a hand :)
Martial Garchery
@mlgarchery
I have a quick question, do you know where are stored lfs tracked files on the server ?
SIkebe
@SIkebe
GITBUCKET_HOME/repositories/<user>/<repository>/lfs
Martial Garchery
@mlgarchery
thx :)