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

Try to find most relevant jobs when building the dependency graph and multiple jobs build the same maven module

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None

      Description

      If there are multiple jobs building the same maven module, currently it's more or less random which of these jobs is included in Jenkins' dependency graph.
      The mechanism should be improved to choose the more relevant jobs - if possible - and the deliver predictable results.

      I've implemented a prototype here:
      https://github.com/kutzi/jenkins/commit/0e64a6ff3f9cb424b3f6b3adfa06ec1eb134e72c

        Issue Links

          Activity

          kutzi kutzi created issue -
          kutzi kutzi made changes -
          Field Original Value New Value
          Assignee kutzi [ kutzi ]
          Hide
          kutzi kutzi added a comment -

          Relevancy is determined this way, from higher to lower:

          • job deploys artifacts to a remote Maven repository
          • job installs artifacts to local Maven repository
          • none of the above
          Show
          kutzi kutzi added a comment - Relevancy is determined this way, from higher to lower: job deploys artifacts to a remote Maven repository job installs artifacts to local Maven repository none of the above
          Hide
          kutzi kutzi added a comment -
          Show
          kutzi kutzi added a comment - Added a pull request https://github.com/jenkinsci/jenkins/pull/200
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          maven-plugin/src/main/java/hudson/maven/MavenModule.java
          http://jenkins-ci.org/commit/jenkins/b8aec882f28bbbd889ebc1f4a761ed1310353040
          Log:
          [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: maven-plugin/src/main/java/hudson/maven/MavenModule.java http://jenkins-ci.org/commit/jenkins/b8aec882f28bbbd889ebc1f4a761ed1310353040 Log: [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/315d2b611b1278014493c89fde99c9f1603e334a
          Log:
          Changelog for JENKINS-10366 JENKINS-10367

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/315d2b611b1278014493c89fde99c9f1603e334a Log: Changelog for JENKINS-10366 JENKINS-10367
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #982
          [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module
          Changelog for JENKINS-10366 JENKINS-10367

          Christoph Kutzinski : b8aec882f28bbbd889ebc1f4a761ed1310353040
          Files :

          • maven-plugin/src/main/java/hudson/maven/MavenModule.java

          Christoph Kutzinski : 315d2b611b1278014493c89fde99c9f1603e334a
          Files :

          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #982 [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module Changelog for JENKINS-10366 JENKINS-10367 Christoph Kutzinski : b8aec882f28bbbd889ebc1f4a761ed1310353040 Files : maven-plugin/src/main/java/hudson/maven/MavenModule.java Christoph Kutzinski : 315d2b611b1278014493c89fde99c9f1603e334a Files : changelog.html
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          maven-plugin/src/main/java/hudson/maven/MavenModule.java
          http://jenkins-ci.org/commit/jenkins/b8aec882f28bbbd889ebc1f4a761ed1310353040
          Log:
          [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: maven-plugin/src/main/java/hudson/maven/MavenModule.java http://jenkins-ci.org/commit/jenkins/b8aec882f28bbbd889ebc1f4a761ed1310353040 Log: [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/315d2b611b1278014493c89fde99c9f1603e334a
          Log:
          Changelog for JENKINS-10366 JENKINS-10367

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/315d2b611b1278014493c89fde99c9f1603e334a Log: Changelog for JENKINS-10366 JENKINS-10367
          mdp mdp made changes -
          Link This issue is related to JENKINS-11237 [ JENKINS-11237 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          maven-plugin/src/main/java/hudson/maven/MavenModule.java
          http://jenkins-ci.org/commit/jenkins/b8aec882f28bbbd889ebc1f4a761ed1310353040
          Log:
          [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: maven-plugin/src/main/java/hudson/maven/MavenModule.java http://jenkins-ci.org/commit/jenkins/b8aec882f28bbbd889ebc1f4a761ed1310353040 Log: [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/315d2b611b1278014493c89fde99c9f1603e334a
          Log:
          Changelog for JENKINS-10366 JENKINS-10367

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/315d2b611b1278014493c89fde99c9f1603e334a Log: Changelog for JENKINS-10366 JENKINS-10367
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/MavenModule.java
          http://jenkins-ci.org/commit/maven-plugin/0a9633e6d00d2fe6f44dd314c2a40236858ecd11
          Log:
          [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module
          Originally-Committed-As: b8aec882f28bbbd889ebc1f4a761ed1310353040

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/MavenModule.java http://jenkins-ci.org/commit/maven-plugin/0a9633e6d00d2fe6f44dd314c2a40236858ecd11 Log: [FIXED JENKINS-10366] choose most 'relevant' job for dependency graph if multiple jobs are building the same maven module Originally-Committed-As: b8aec882f28bbbd889ebc1f4a761ed1310353040
          ircbot IRCbot Run by Kohsuke made changes -
          Component/s maven-plugin [ 16033 ]
          Component/s maven2 [ 15487 ]

            People

            • Assignee:
              kutzi kutzi
              Reporter:
              kutzi kutzi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: