jitpack.io
jitpack.io copied to clipboard
self hosted GitLab private Android repository authToken has problem
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.
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 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
Just to test could you try placing your GL token directly in build.gradle:
maven {
url "https://jitpack.io"
credentials { username 'a1b2c3...' }
}
@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 Have you solved your problem?I have the same problem。
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
@niwoshijie I did not fix this problem . finally I use gitlab.com
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