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

Incremental build - only build changed modules; wrong modules calculation

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • maven-plugin
    • None
    • Jenkins 1.540
      maven-plugin 2.8

      Given two SVN repos that are configured in the job:

      • Repository URL: svn+ssh://svn@svn.acme.com/repos/foo
      • Repository URL: svn+ssh://svn@svn.acme.com/repos/bar

      and an aggregator pom in foo, building modules from different repos:

          <modules>
              <module>foo-submodule</module>
              <module>../bar</module>
          </modules>
      

      If there is a commit affecting bar only the root aggregator module will be built and not the bar module.

      Workaround (sort of): add the bar module (-pl ../bar) to Goals and options box, to have it always built.

          [JENKINS-29786] Incremental build - only build changed modules; wrong modules calculation

          Jakub Bochenski created issue -
          Jakub Bochenski made changes -
          Environment New: Jenkins 1.540
          maven-plugin 2.8
          Jakub Bochenski made changes -
          Description Original: Given two SVN repos that are configured in the job:
          * Repository URL: svn+ssh://svn@svn.acme.com/repos/foo
          * Repository URL: svn+ssh://svn@svn.acme.com/repos/bar

          and an aggregator pom in foo, building modules from different repos:
          {code:xml}
              <modules>
                  <module>foo-submodule</module>
                  <module>../bar</module>
              </modules>
          {code}

          If there is a commit affecting bar only the root aggregator module will be built and not the bar module.

          Workaround (sort of): add the bar module ({{-pl bar}}) to {{Goals and options}} box, to have it always built.
          New: Given two SVN repos that are configured in the job:
          * Repository URL: svn+ssh://svn@svn.acme.com/repos/foo
          * Repository URL: svn+ssh://svn@svn.acme.com/repos/bar

          and an aggregator pom in foo, building modules from different repos:
          {code:xml}
              <modules>
                  <module>foo-submodule</module>
                  <module>../bar</module>
              </modules>
          {code}

          If there is a commit affecting bar only the root aggregator module will be built and not the bar module.

          Workaround (sort of): add the bar module ({{-pl ../bar}}) to {{Goals and options}} box, to have it always built.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 164862 ] New: JNJira + In-Review [ 181718 ]

            Unassigned Unassigned
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: