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

Declarative: auto-build Dockerfile and run in resulting image if provided

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      There should be an option for the Docker Pipeline configuration for Declarative Pipelines to point to a Dockerfile - if that option is given, then we should build that Dockerfile and run in the resulting image.

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            Hrm. Got a frustrating point here - we don't do checkout scm until after we've got our node/docker container/etc, but we need to do that checkout scm before we can do docker.build(...). Gotta think about this.

            Show
            abayer Andrew Bayer added a comment - Hrm. Got a frustrating point here - we don't do checkout scm until after we've got our node/docker container/etc, but we need to do that checkout scm before we can do docker.build(...) . Gotta think about this.
            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/38
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfile.java
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfileScript.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f44f304bbbce5955976288952d3e6460edb4e75e
            Log:
            JENKINS-39216 First work on auto-building Dockerfiles.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfile.java pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfileScript.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f44f304bbbce5955976288952d3e6460edb4e75e Log: JENKINS-39216 First work on auto-building Dockerfiles.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
            pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfile.java
            pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfileScript.groovy
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/ValidatorTest.java
            pipeline-model-definition/src/test/resources/fromAlternateDockerfile.groovy
            pipeline-model-definition/src/test/resources/fromDockerfile.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/3e0001abe0822943f798ab3d27e2288afa644195
            Log:
            Merge pull request #38 from abayer/jenkins-39216

            JENKINS-39216 Add "dockerfile" agent backend

            Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/eb197a9a948d...3e0001abe082

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfile.java pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineFromDockerfileScript.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/ValidatorTest.java pipeline-model-definition/src/test/resources/fromAlternateDockerfile.groovy pipeline-model-definition/src/test/resources/fromDockerfile.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/3e0001abe0822943f798ab3d27e2288afa644195 Log: Merge pull request #38 from abayer/jenkins-39216 JENKINS-39216 Add "dockerfile" agent backend Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/eb197a9a948d...3e0001abe082
            Hide
            abayer Andrew Bayer added a comment -

            Will be released in 0.6.

            Show
            abayer Andrew Bayer added a comment - Will be released in 0.6.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: