ci构建失败:denied: requested access to the resource is denied

  • Choerodon平台版本:0.18.0

  • 运行环境:自主搭建

  • 问题描述:

    请尽量详细的描述您遇到的问题,以便我们能更快速的提供解决办法。

    Step 1/3 : FROM c7nd01-harbor.jnpc.com.cn/operation-demo02-ngx/jre:1.8.0
    1.8.0: Pulling from operation-demo02-ngx/jre
    Digest: sha256:8f522e70fc514f6df246dcf5329512972bb5f139d6c5a242206504de10b6a6d0
    Status: Image is up to date for c7nd01-harbor.jnpc.com.cn/operation-demo02-ngx/jre:1.8.0
    —> 779aac38902f
    Step 2/3 : COPY ./contact-center-3.9.0.war /usr/
    —> Using cache
    —> f15209988265
    Step 3/3 : ENTRYPOINT ["/bin/sh", “java”, “-jar”, “/usr/contact-center-3.9.0.war”]
    —> Using cache
    —> 059035a060de
    Successfully built 059035a060de
    Successfully tagged c7nd01-harbor.jnpc.com.cn/operation-demo02-ngx/contactdemo01:2019.9.9-233559-master
    The push refers to repository [c7nd01-harbor.jnpc.com.cn/operation-demo02-ngx/contactdemo01]
    4ec967b5b7f0: Preparing
    a6b7c439e88c: Preparing
    37a90f0fe9b9: Preparing
    03901b4a2ea8: Preparing
    denied: requested access to the resource is denied
    ERROR: Job failed: command terminated with exit code 1

  • 执行的操作:
    如:创建了一个新用户并给用户分配了项目管理员权限,使用该用户登录系统

  • 报错信息(请尽量使用代码块或系统截图的形式展现):

  • 建议:

    提出您认为不合理的地方,帮助我们优化用户操作

使用最新的ci文件就可以了。 请更新http://choerodon.io/zh/docs/transference-guide/application-migration/ 中的 .gitlab-ci.yml 文件。

image: registry.cn-hangzhou.aliyuncs.com/choerodon-tools/cibase:0.7.0

stages:
  - chart_build

chart_build:
  stage: chart_build
  script:
    - docker login -u ${DOCKER_USER} -p ${DOCKER_PWD} ${DOCKER_REGISTRY}
    - docker build --pull -t ${DOCKER_REGISTRY}/${GROUP_NAME}/${PROJECT_NAME}:${CI_COMMIT_TAG} .
    - docker push ${DOCKER_REGISTRY}/${GROUP_NAME}/${PROJECT_NAME}:${CI_COMMIT_TAG}
    - chart_build

.auto_devops: &auto_devops |
    http_status_code=`curl -o .auto_devops.sh -s -m 10 --connect-timeout 10 -w %{http_code} "${CHOERODON_URL}/devops/ci?token=${Token}"`
    if [ "$http_status_code" != "200" ]; then
      cat .auto_devops.sh
      exit 1
    fi
    source .auto_devops.sh

before_script:
  - *auto_devops

您好,请问部署runner是否按照我们提供的文档进行部署的?