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

artifactory-plugin's Docker setup requires dedicated Jenkins machines

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • RHEL 7.2, Docker version 1.12.3, Jenkins 2.19.3(running in Docker, no agents, only master), Artifactory 4.14.2, Artifactory Plugin 2.8.2

      As documentation says,

      ...the Jenkins Artifactory Plugin can collect build info for your Docker builds in Jenkins by setting up an internal proxy server through which the Docker daemon routes its traffic.

      This approach requires dedicated Jenkins machines:

      • Every pull and push request on the machine goes through the Artifactory Plugin's internal proxy. That is why a simple docker pull artifactory.mycompany.com/my-app command fails if Jenkins does not run. In this approach, Jenkins must be running all the time although our work is not related with the build system.
      • Docker daemon has to use Artifactory Plugin's internal proxy. That is why only one Jenkins can run on a machine. Even if we have more than one Jenkins servers running on different ports and proxy ports, Docker daemon must use only one of them.

      If Docker swarm cluster is used for containerized applications (myApp1Jenkins, myApp1, myApp1DB, myApp2Jenkins, myApp2, myApp2DB, etc. ), all swarm nodes, so the applications, becomes dependent on Jenkins Artifactory Plugin's internal proxy:

      • Swarm nodes are shared by Jenkins and other applications. New versions of the applications cannot be pulled when Jenkins does not run.
      • More than one Jenkins servers can be run on the same swarm node. But the node's Docker daemon can use only one of them as proxy.
      • It is required to add proxy certificates to each swarm node and repeat this for all containerized Jenkins'.

          [JENKINS-40276] artifactory-plugin's Docker setup requires dedicated Jenkins machines

          There are no comments yet on this issue.

            eyalbe Eyal Ben Moshe
            as_kumlali Ali Sadik Kumlali
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: