devstream icon indicating copy to clipboard operation
devstream copied to clipboard

gitlabci-generic plugin issue

Open calvinxu opened this issue 1 year ago • 2 comments

Hi,

Anyone using the gitlabci-generic plugin, when I tried it, got the following issue, I use our own setup gitlab repo instead of gitlab.com, how to set to use our own repo instead of below trying to post https://gitlab.com/api...? ..... 2022-08-19 10:28:08 !! [ERROR] Errors Map: key(gitlabci-generic/default-Create) -> value(POST https://gitlab.com/api/v4/projects/calvin/demodvs/repository/commits: 401 {message: 401 Unauthorized})
2022-08-19 10:28:08 !! [ERROR] Apply failed => some error(s) occurred during plugins apply process.

calvinxu avatar Aug 19 '22 08:08 calvinxu

@IronCore864 @imxw Could you please help to resolve this issue?

daniel-hutao avatar Aug 19 '22 13:08 daniel-hutao

  • Do you set base_url in config, this can be your self hosted gitlab address.
  • Do you set GITLAB_TOKEN?

steinliber avatar Aug 22 '22 05:08 steinliber

I set the base_url in the config file, which point to our self hosted gitlab url; and export GITLAB_TOKEN as well before running the "dtm apply ....", same issue as above.

calvinxu avatar Aug 22 '22 11:08 calvinxu

Can you give your base_url setting and run with --debug, I have tested gitlab And it can work

steinliber avatar Aug 25 '22 16:08 steinliber