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

Automatically install necessary plugins when importing jobs

    XMLWordPrintable

Details

    Description

      JobImportAction.doImport should call PluginManager.prevalidateConfig (in Jenkins 1.483+) to ensure that all plugins used by the job are in fact available on the local Jenkins server.

      Attachments

        Issue Links

          Activity

            Job dependencies (such as plugins) are critical in making the import truly useful. In addition, jobs can depend on a variety of other Jenkins components such as internal (scriptler scripts) and external scripts, global properties, tools etc. The plugin should at least generate a report of these dependencies so that the user can address them to have a functioning job on the destination server.

            ioannis Ioannis Moutsatsos added a comment - Job dependencies (such as plugins) are critical in making the import truly useful. In addition, jobs can depend on a variety of other Jenkins components such as internal (scriptler scripts) and external scripts, global properties, tools etc. The plugin should at least generate a report of these dependencies so that the user can address them to have a functioning job on the destination server.

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/main/java/org/jenkins/ci/plugins/jobimport/JobImportAction.java
            src/main/resources/org/jenkins/ci/plugins/jobimport/JobImportAction/index.jelly
            http://jenkins-ci.org/commit/job-import-plugin/2173d0b6f01d859fb3f9cbb8747aa3db915357f3
            Log:
            [DONE JENKINS-20877] install plugins if required

            *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

            Functionality will be removed from GitHub.com on January 31st, 2019.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/main/java/org/jenkins/ci/plugins/jobimport/JobImportAction.java src/main/resources/org/jenkins/ci/plugins/jobimport/JobImportAction/index.jelly http://jenkins-ci.org/commit/job-import-plugin/2173d0b6f01d859fb3f9cbb8747aa3db915357f3 Log: [DONE JENKINS-20877] install plugins if required * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.

            People

              escoem Emilio Escobar
              jglick Jesse Glick
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: