jx: the jenkins-x can not create git repository

Summary

when I did the follow command: # jx install --provider=kubernetes in the end ,the error shows like this: error: creating the environments: failed to create staging environment in namespace jx: creating environment git repository: creatakercanyon-staging due to: POST http://gitlab.xxx.com/api/v3/user/repos: 410 []

Steps to reproduce the behavior

when I do the follow command: $ jx install --provider=kubernetes and enter my gitlab address, successfully installed jenkins-x,but can not create git repository with gitlab.xxx.com

image image

I used fowllow command installed gitlab with kubernetes: helm upgrade --install gitlab gitlab/gitlab
–timeout 600
–namespace gitlab-ce
–set certmanager.install=false
–set global.hosts.domain=xxx.com
–set global.hosts.externalIP=192.168.15.141
–set global.ingress.configureCertmanager=false
–set global.ingress.tls.enabled=false
–set global.hosts.https=false
–set global.edition=ce

Expected behavior

jenkins-x can create repository with gitlab

Actual behavior

jenkins-x can not create repository with gitlab

Jx version

# jx --version 1.3.1010

The output of jx version is: NAME VERSION jx 1.3.1030 jenkins x platform 0.0.3636 Kubernetes cluster v1.13.4 kubectl v1.13.4 helm client v2.13.0+g79d0794 helm server v2.13.0+g79d0794 git git version 1.8.3.1 Operating System CentOS Linux release 7.6.1810 (Core)

COPY OUTPUT HERE `error: creating the environments: failed to create staging environment in namespace jx: creating environment git repository: creating the repository: Failed to create repository /environment-takercanyon-staging due to: POST http://gitlab.xxx.com/api/v3/user/repos: 410 []``

Jenkins type

Static Master Jenkins

Kubernetes cluster

kubectl version Client Version: version.Info{Major:“1”, Minor:“13”, GitVersion:“v1.13.4”, GitCommit:“c27b913fddd1a6c480c229191a087698aa92f0b1”, GitTreeState:“clean”, BuildDate:“2019-02-28T13:37:52Z”, GoVersion:“go1.11.5”, Compiler:“gc”, Platform:“linux/amd64”}

Server Version: version.Info{Major:“1”, Minor:“13”, GitVersion:“v1.13.4”, GitCommit:“c27b913fddd1a6c480c229191a087698aa92f0b1”, GitTreeState:“clean”, BuildDate:“2019-02-28T13:30:26Z”, GoVersion:“go1.11.5”, Compiler:“gc”, Platform:“linux/amd64”}

the kubernetes is the Binary installation on Bare Metal

Operating system / Environment

cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core)

with xshell did the command.

Sorry For My Poor English…

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (2 by maintainers)

Commits related to this issue

Most upvoted comments

our go-scm library is using gitlabs v4 API; we maybe need to move the gitlab code in jx to use go-scm instead https://github.com/jenkins-x/go-scm

Looks like it’s using the old v3 API and not the v4 API.

In the jx go modules the dependency for the git lab library is:

github.com/xanzy/go-gitlab v0.0.0-20180814191223-f3bc634ab936

Upgrading that to a newer released version may well fix this issue.