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

docker-plugin adds JobPropteries to all jobs even if you don't use docker-plugin for that job

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • docker-plugin
    • None
    • docker-plugin 0.8
      Jenkins 1.609.1

      The docker-plugin add job properties to Freestyle jobs even if you don't care about using docker-plugin for this job.
      Adding jobProperties should only be done if the user wants to do something with the job property.

      This causes issues with plugins that want to migrate jobs to different instances and check what plugins are in use (docker-plugin will be listed as found as its jobProperties will be on all projects where the docker-plugin is installed).

      Steps to reproduce

      1. install docker-plugin
      2. restart jenkins
      3. create a new FreeStyleJob
      4. Hit save
      5. check the config.xml

      expected results
      it should be possible to generate a config.xml that contains no
      com.nirima.jenkins.plugins.docker.DockerJobProperty

      Actual results
      it is not possible even by keeping the default options to save a job that contains no
      com.nirima.jenkins.plugins.docker.DockerJobProperty

          [JENKINS-28842] docker-plugin adds JobPropteries to all jobs even if you don't use docker-plugin for that job

          I wouldn't even read bug related to 0.8

          Kanstantsin Shautsou added a comment - I wouldn't even read bug related to 0.8

          Also, when i'm implementing Job property i expect that it will be wrapped automatically, but kohsuke implemented that as a feature.
          Feel free to provide configurable mechanisms in core, you can continue my PR https://github.com/jenkinsci/jenkins/pull/1656

          Kanstantsin Shautsou added a comment - Also, when i'm implementing Job property i expect that it will be wrapped automatically, but kohsuke implemented that as a feature. Feel free to provide configurable mechanisms in core, you can continue my PR https://github.com/jenkinsci/jenkins/pull/1656

          James Nord added a comment -

          this is not an issue with 0.9.2

          James Nord added a comment - this is not an issue with 0.9.2

            integer Kanstantsin Shautsou
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: