0

当我尝试使用 Jenkins job builder for docker build and publish plugin 构建 Jenkins 作业时,我遇到了问题。我在这里有两个问题:

1.) 在存储库标签中它不接受 "/" 。2.)注册表 url 和密码没有反映在我的 jenkins 作业配置中(间距正确)这是我的作业模板:

  • 作业模板:名称:'{name}_job' 描述:'自动生成的测试'节点:PROD-SLAVE 构建器:

    • 外壳:| 呸呸呸
    • docker-build-publish: repo-name: "npu-cluster/{name}" repo-tag: 'BUILD_NUMBER' no-cache: false no-force-pull: false skip-build: false 指纹: true skip-decorate:假跳过最新:真跳过标签:假文件路径:'{name}/Dockerfile' 注册表 URL:url 注册表凭据 ID:凭据 ID

    • ssh-builder:ssh-user-ip:centos@ip 命令:blah blah

4

1 回答 1

0

我在寻找同类问题的解决方案时发现了这个问题。也许您已经找到了答案,但无论如何,这对我有用:

- docker-build-publish:
    repo-name: 'sandboxname/component'
    registry:
       url: "https://yourremotelocation:port/"
       credentials-id: "yourcredentialsid"
于 2018-03-06T11:04:50.993 回答