Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29098

Can not use multiple credentials per job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The plugin allows the use of one set of credentials per-job, which works fine as long as we rely on images already present on the machine, but fails when the Dockerfile refers to a baseimage from a different (private) repository.

      Example:
      We setup a job with hello as the repo name and https://private-dev.repo.com/v2/ as the repo URL.
      The content of the Dockerfile is:

      FROM private-prod.repo.com/baseimage
      RUN echo hello
      

      Docker Build and Publish does not pull the image from the repo indicated in the FROM directive, because it comes from a different repository than the one defined as the target.

      It should be possible to use multiple credentials per job, or at least to honor the ones inside the .dockercfg file.

        Attachments

          Activity

          Hide
          csanchez Carlos Sanchez added a comment -

          This is something that will have to be handled at the docker-commons plugin

          Show
          csanchez Carlos Sanchez added a comment - This is something that will have to be handled at the docker-commons plugin
          Hide
          antoineco Antoine Cotten added a comment - - edited

          Should I create an issue there? (edit: I didn't see you assigned a new component to my issue, thanks!)

          Show
          antoineco Antoine Cotten added a comment - - edited Should I create an issue there? (edit: I didn't see you assigned a new component to my issue, thanks!)
          Hide
          jglick Jesse Glick added a comment -

          This is something that will have to be handled at the docker-commons plugin

          Why do you say that? I do not believe any change would be needed in docker-commons for that.

          Show
          jglick Jesse Glick added a comment - This is something that will have to be handled at the docker-commons plugin Why do you say that? I do not believe any change would be needed in docker-commons for that.

            People

            • Assignee:
              csanchez Carlos Sanchez
              Reporter:
              antoineco Antoine Cotten
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: