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

Disable automatic set upstream projects from maven dependencies

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      I use maven2 project type. It looks like pom dependencies are automatically set
      to upstream projects. Is it possible to disable this feature? I have a huge
      dependency tree of projects. When I build project on which all other projects
      depend, it causes that all projects are build by Hudson. And I would like to
      manage it.

          [JENKINS-1714] Disable automatic set upstream projects from maven dependencies

              • Issue 1552 has been marked as a duplicate of this issue. ***

          Kohsuke Kawaguchi added a comment - Issue 1552 has been marked as a duplicate of this issue. ***

          dvrzalik added a comment -

          Kohsuke, what are your plans on this? I was thinking about adding single
          checkbox on the project/module configuration page and modifying
          RunnerImpl.cleanUp() in MavenModuleSetBuild and MavenBuild to reflect
          configuration and possibly skip scheduling downstream projects. Do you think it
          would be appropriate?

          dvrzalik added a comment - Kohsuke, what are your plans on this? I was thinking about adding single checkbox on the project/module configuration page and modifying RunnerImpl.cleanUp() in MavenModuleSetBuild and MavenBuild to reflect configuration and possibly skip scheduling downstream projects. Do you think it would be appropriate?

          I was thinking about this issue this morning.

          I think what's really being requested here is an option to prevent jobs from
          adding dependencies to its upstream.

          In any case, isn't it just changing buildDependencyGraph

          Kohsuke Kawaguchi added a comment - I was thinking about this issue this morning. I think what's really being requested here is an option to prevent jobs from adding dependencies to its upstream. In any case, isn't it just changing buildDependencyGraph

          dvrzalik added a comment -

          Yes, I guess this will work too . I also believe it would be nice to have an
          option to disable this behavior globally.

          dvrzalik added a comment - Yes, I guess this will work too . I also believe it would be nice to have an option to disable this behavior globally.

          elig added a comment -

          I find the option of controlling both upstream and downstream triggers helpful.
          For example I could have job that builds maven reports and that triggers builds
          in downstream projects. That really isn't appropriate since source didn't change.

          elig added a comment - I find the option of controlling both upstream and downstream triggers helpful. For example I could have job that builds maven reports and that triggers builds in downstream projects. That really isn't appropriate since source didn't change.

          hvisser added a comment -

          What about making the configuration on the upstream build? Something like switch
          to configure the behaviour: automatically add downstream maven projects to the
          list of configured downstream projects or only use the list of downstream builds
          as set in the configuration. When downstream projects are automatically
          configured the UI would also list those projects in the project config.

          hvisser added a comment - What about making the configuration on the upstream build? Something like switch to configure the behaviour: automatically add downstream maven projects to the list of configured downstream projects or only use the list of downstream builds as set in the configuration. When downstream projects are automatically configured the UI would also list those projects in the project config.

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/maven/MavenModule.java
          trunk/hudson/main/core/src/main/java/hudson/maven/MavenModuleSet.java
          trunk/hudson/main/core/src/main/resources/hudson/maven/MavenModuleSet/configure-entries.jelly
          trunk/hudson/main/war/resources/help/maven/ignore-upstrem-changes.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=12554
          Log:
          [FIXED JENKINS-1714] Automatic dependency management in Maven2 projects can be now disabled.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/maven/MavenModule.java trunk/hudson/main/core/src/main/java/hudson/maven/MavenModuleSet.java trunk/hudson/main/core/src/main/resources/hudson/maven/MavenModuleSet/configure-entries.jelly trunk/hudson/main/war/resources/help/maven/ignore-upstrem-changes.html http://fisheye4.cenqua.com/changelog/hudson/?cs=12554 Log: [FIXED JENKINS-1714] Automatic dependency management in Maven2 projects can be now disabled.

            kohsuke Kohsuke Kawaguchi
            shamoh shamoh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: