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

Pipeline Model: Add the ability to specify agent parameters (docker)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Add the ability to specify custom agent parameters. For example to mount host volumes into a docker container.

      pipeline {
        agent docker:'maven:3.3.3', args:'-v /mnt/dev/repo:/root/.m2/repository'
        ...
      }
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Peter Leibiger
          Path:
          src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/Agent.groovy
          src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java
          src/test/resources/agentDocker.groovy
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/df6eaddfa1fe293f0727d0417082833774647929
          Log:
          [FIXED JENKINS-38242] Add the ability to specify agent parameters (docker)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Peter Leibiger Path: src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/Agent.groovy src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java src/test/resources/agentDocker.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/df6eaddfa1fe293f0727d0417082833774647929 Log: [FIXED JENKINS-38242] Add the ability to specify agent parameters (docker)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Peter Leibiger
          Path:
          src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/Agent.groovy
          src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java
          src/test/resources/agentDocker.groovy
          src/test/resources/agentDockerWithEmptyDockerArgs.groovy
          src/test/resources/agentDockerWithNullDockerArgs.groovy
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/3878f2932d7c912b777ddabca5cf7f8dcc097d74
          Log:
          [FIXED JENKINS-38242] Add the ability to specify agent parameters (docker)

          • rename args to dockerArgs
          • add tests for null/empty dockerArgs
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Peter Leibiger Path: src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/Agent.groovy src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java src/test/resources/agentDocker.groovy src/test/resources/agentDockerWithEmptyDockerArgs.groovy src/test/resources/agentDockerWithNullDockerArgs.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/3878f2932d7c912b777ddabca5cf7f8dcc097d74 Log: [FIXED JENKINS-38242] Add the ability to specify agent parameters (docker) rename args to dockerArgs add tests for null/empty dockerArgs

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              pleibiger Peter Leibiger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: