jitpack.io icon indicating copy to clipboard operation
jitpack.io copied to clipboard

self hosted GitLab private Android repository authToken has problem

Open timfei opened this issue 8 years ago • 8 comments

Hi, I met a authToken setting problem, I have a self hosted GitLab server and set custom domain already. A public Android repository is work fine with JitPack. Through Look Up button I can get the every release version. But when I set a private Android repository(same as public repo setting), I set authToken at
create new file $HOME/.gradle/gradle.properties(authToken = xxxxxxxx) And also copy my GitLab personal token to JitPack user page (not show error icon). Add

maven {
            url "https://jitpack.io"
            credentials { username 'xxxxxx' }
 }

in Android project root build.gradle file. other information, e.g : custom domain: git.repo.com subscription url: my.repo.com/timfei/ repository url: my.repo.com/timfei/Demo

But, https: //jitpack.io/private#com.repo/Demo (fake) always show No read access to repo. Is there any wrong setting ? or something I miss it ?

Thanks, Any help will be highly motivated to me.

timfei avatar Sep 26 '17 05:09 timfei

Hi @timfei

Does it work if you replace authToken with your GitLab personal token? Could you open a support ticket on the website with your custom domain details so that we can check the logs?

jitpack-io avatar Sep 26 '17 07:09 jitpack-io

@jitpack-io Hi Sorry, I don't get the meaning of 'replace authToken with my GitLab personal token', I set JitPack authToken(xxxx) in $HOME/.gradle/gradle.properties(Grobal Properties) and projcet root build.gradle, and set my GitLab personal token yyyyy to JitPack userpage already.

This is my private repo: https://jitpack.io/private#cn.gokuai/my_private my custom domain: git.gokuai.cn

timfei avatar Sep 26 '17 08:09 timfei

Just to test could you try placing your GL token directly in build.gradle:

maven {
            url "https://jitpack.io"
            credentials { username 'a1b2c3...' }
 }

jitpack-io avatar Sep 28 '17 06:09 jitpack-io

@jitpack-io Hello, I did try, when I use gitlab.com access token in JitPack user page, it shows a green icon ☑️ , and JitPack has read access to my gitlab private repo.

But when I use my company self-hosted GitLab access token, it shows nothing, I use my member account, not the host account. Is this cause the access problem?

thanks

timfei avatar Oct 10 '17 08:10 timfei

@timfei Have you solved your problem?I have the same problem。

niwoshijie avatar Nov 13 '18 09:11 niwoshijie

For anyone seeing the same issue, try running this command to check your token: git ls-remote https://<TOKEN>:<TOKEN>@<YOUR_GITLAB_SERVER>/user/repo.git

jitpack-io avatar Nov 16 '18 09:11 jitpack-io

@niwoshijie I did not fix this problem . finally I use gitlab.com

timfei avatar Nov 19 '18 06:11 timfei

I am facing the same issue even after following every instruction I was able to create my organization-hosted GitLab subscription but can not access my private repository https://jitpack.io/private#com.bongobd.gitlab.asm.sayem.Skeleton/! every time I tried to access the private repo it says Repository not found: https://sayem.asm.gitlab.bongobd.com/Skeleton. The company has paid for the subscription already but nothing is working properly. Can anyone help me out asap? cc: @jitpack-io @niwoshijie @timfei

sam43 avatar Aug 17 '21 07:08 sam43