[JIRA] (JENKINS-38242) Pipeline Model: Add the ability to specify agent parameters (docker)

2 views
Skip to first unread message

p.leibiger@codecraft.de (JIRA)

unread,
Sep 15, 2016, 9:45:01 AM9/15/16
to jenkinsc...@googlegroups.com
Peter Leibiger created an issue
 
Jenkins / New Feature JENKINS-38242
Pipeline Model: Add the ability to specify agent parameters (docker)
Issue Type: New Feature New Feature
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2016/Sep/15 1:44 PM
Priority: Minor Minor
Reporter: Peter Leibiger

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'
  ...
}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

scm_issue_link@java.net (JIRA)

unread,
Sep 26, 2016, 12:21:03 PM9/26/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on New Feature JENKINS-38242
 
Re: Pipeline Model: Add the ability to specify agent parameters (docker)

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)

scm_issue_link@java.net (JIRA)

unread,
Sep 26, 2016, 12:21:03 PM9/26/16
to jenkinsc...@googlegroups.com

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

scm_issue_link@java.net (JIRA)

unread,
Sep 26, 2016, 12:21:03 PM9/26/16
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:16 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages