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

withServer raises RejectedAccessException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • docker-flow-plugin
    • None

      The following pipeline script (using docker-flow-plugin v1.7):

      node {
          docker.withServer('tcp://1.2.3.4:2375').image('hello-world').inside {
              stage 'Docker'
          }
      }
      

      raises a RejectedAccessException (see error.txt for full log).

      Using the withServer function in the docker-workflow-plugin demo project, I adjusted in "flow.groovy":

      def maven = docker.withServer('tcp://1.2.3.4:2375').image('maven:3.3.9-jdk-8');
      

      The solution mentioned in JENKINS-30414: restarting after install due to script-security, doesn't help.

            vfarcic Viktor Farcic
            joostm Joost Meijles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: