云效这个流水线的错误怎么解决?

云效这个流水线的错误怎么解决?https://flow.aliyun.com/pipelines/2612191/current
image.png

[executionStep begins at 2023-09-18 14:17:17]

[INFO] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

[14:17:18] [SUCCESS] 获取 Credential 成功

[14:17:18] [INFO] 使用工作路径/root/workspace/platform-api_yZ58

[14:17:18] [INFO] 执行步骤

[14:17:18] [USER]NODEGROUP_TYPE=K8S

[14:17:18] [INFO]USE BUILDKIT

[14:17:18] [INFO]PIPELINE_ID=2612191

[14:17:18] [INFO]PIPELINE_NAME=玉美分销零售商城-测试环境

[14:17:18] [INFO]BUILD_NUMBER=15

[14:17:18] [INFO]EMPLOYEE_ID=6502a04cdb4f00f5189d88a5

[14:17:18] [INFO]WORK_SPACE=/root/workspace

[14:17:18] [INFO]PROJECT_DIR=/root/workspace/platform-api_yZ58

[14:17:18] [INFO]BUILD_JOB_ID=154743879

[14:17:18] [INFO]ENGINE_GLOBAL_PARAM_ORGANIZATION_ID=6502a0794bb5eb36db2f224b

[14:17:18] [USER]BUILD_ARGS=--opt build-arg:TZ=Asia/Shanghai --opt build-arg:PROFILE=test --opt build-arg:PORT=8080 --opt build-arg:JAR_FILE=/tenant/target/yumei-mall-tenant.jar

[14:17:18] [INFO]STEP_ID=14_1694996973214__16_1694996973214

[14:17:18] [USER]NO_CACHE=false

[14:17:18] [USER]CACHE_MODE=local

[14:17:18] [INFO]BUILDKIT_VERSION=v0.11.6

[14:17:18] [INFO] prepare buildkit

[14:17:18] [INFO] set buildkit version to v0.11.6

[14:17:19] [INFO] prepare dockerhub auth

[14:17:19] [INFO] prepare user docker registry auth

[14:17:19] [INFO] USER_REGISTRY=registry.cn-hangzhou.aliyuncs.com

[14:17:19] [INFO]镜像构建将使用 buildkit

[14:17:19] [INFO] DOCKER_FILE_DIR=/root/workspace/platform-api_yZ58/tenant

[14:17:19] [INFO] DOCKER_FILE_NAME=Dockerfile

[14:17:19] [USER]DOCKER_TAG=0.0.1-SNAPSHOT

[14:17:19] [USER]EXTRA_TAGS=

[14:17:19] registry.cn-hangzhou.aliyuncs.com/yumei-test/yumei-mall-tenant

[14:17:19] buildctl github.com/moby/buildkit v0.11.6 2951a28cd7085eb18979b1f710678623d94ed578

[14:17:19] [INFO] buildkit ready.

[14:17:19] docker login --username=cr_temp_user --password=** registry.cn-hangzhou.aliyuncs.com

[14:17:19] WARNING! Using --password via the CLI is insecure. Use --password-stdin.

[14:17:20] WARNING! Your password will be stored unencrypted in /root/.docker/config.json.

[14:17:20] Configure a credential helper to remove this warning. See

[14:17:20] https://docs.docker.com/engine/reference/commandline/login/#credentials-store

[14:17:20]

[14:17:20] Login Succeeded

[14:17:20] buildctl build --frontend dockerfile.v0 --local context=/root/workspace/platform-api_yZ58/tenant --local dockerfile=/root/workspace/platform-api_yZ58/tenant --opt filename=Dockerfile --opt build-arg:TZ=Asia/Shanghai --opt build-arg:PROFILE=test --opt build-arg:PORT=8080 --opt build-arg:JAR_FILE=/tenant/target/yumei-mall-tenant.jar --output type=image,"name=registry.cn-hangzhou.aliyuncs.com/yumei-test/yumei-mall-tenant:0.0.1-SNAPSHOT",push=true

[14:17:20] #1 [internal] load .dockerignore

[14:17:20] #1 transferring context: 2B done

[14:17:20] #1 DONE 0.0s

[14:17:20]

[14:17:20] #2 [internal] load build definition from Dockerfile

[14:17:20] #2 transferring dockerfile: 324B done

[14:17:20] #2 DONE 0.

展开
收起
三分钟热度的鱼 2023-09-27 12:01:10 134 分享 版权
1 条回答
写回答
取消 提交回答
  • 找不到这个jar呢 ADD ${JAR_FILE} /app.jar
    如果这个jar不再Dockerfile所在的目录里面,需要填写以下ContextPath为jar所在的目录,需要是一个相对于代码库根目录的相对路径。此回答整理自钉群“云效交付域答疑群”

    2023-09-27 13:39:21
    赞同 展开评论

云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。

还有其他疑问?
咨询AI助理