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

Always enable tls option even if no credentials are given

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins core version: 2.68
      Docker commons plugin version: 1.8
      docker client: 17.0.5-ce
      docker server: 17.05.0-ce
    • Similar Issues:

      Description

      When I use remote docker REST api without TLS and don't set "Server Credential", it always try using tls(https). Even if the env variable of DOCKER_TLS_VERIFY is 0, it does not work.

      The build log is like below.
      [docker] $ docker build -t shyr/sci --pull=true /home1/irteam/jenkins_home/workspace/docker
      An error occurred trying to connect: Post
      https://MY_DOCKER_HOST:11375/v1.24/build?buildargs=%7B%7D&buildbinds=null&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&pull=1&rm=1&shmsize=0&t=shyr%2Fsci&ulimits=null
      : http: server gave HTTP response to HTTPS client
      Build step 'Docker Build and Publish' marked build as failure
       

        Attachments

          Activity

          Hide
          shyr stephen moon added a comment -

          I found it out that if there is Env variable named 'DOCKER_TLS_VERIFY' in jenkins global configuration, then this plugin use tls. But I think if user don't set server credential, it should disable tls verify option regardless of jenkins global env variable.

          Show
          shyr stephen moon added a comment - I found it out that if there is Env variable named 'DOCKER_TLS_VERIFY' in jenkins global configuration, then this plugin use tls. But I think if user don't set server credential, it should disable tls verify option regardless of jenkins global env variable.

            People

            Assignee:
            csanchez Carlos Sanchez
            Reporter:
            shyr stephen moon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: