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

Provide a SCMCheckoutStrategy to checkout only once for all matrix entries

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Critical Critical
    • matrix-project-plugin
    • None
    • Platform: All, OS: All

      When a project got a configuration matrix, the source code is checked out multiple times:

      • Once for reference incase of poll scm on schedule.
      • Once per matrix item, increasing proportionaly to the complexity.

      It would be great to have a strategy, which runs checkout only once in the master build.

      A patch proposal from @asolsson (initial implementation before creation of SCMCheckoutStrategy )

      I've implemented an enhancement to the matrix project to avoid a SCM checkout
      for each target in the matrix. This can be useful if checkout takes a long time
      and if the build step can build concurrent builds from the same SCM area.
      It's implemented as a option when setting up the Matrix project, if not
      used/checked the Matrix project will work as usual.

          [JENKINS-4960] Provide a SCMCheckoutStrategy to checkout only once for all matrix entries

          asolsson created issue -
          asolsson made changes -
          Attachment New: useSameScmCheckout.diff [ 18962 ]
          mdonohue made changes -
          Link New: This issue is duplicated by JENKINS-5078 [ JENKINS-5078 ]
          asolsson made changes -
          Attachment New: patch.diff [ 19007 ]
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-6902 [ JENKINS-6902 ]
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-7350 [ JENKINS-7350 ]
          Garen Parham made changes -
          Link New: This issue is related to JENKINS-6184 [ JENKINS-6184 ]
          Rune Darrud made changes -
          Link New: This issue is related to JENKINS-13042 [ JENKINS-13042 ]
          Kohsuke Kawaguchi made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ]
          Description Original: I've implemented an enhancement to the matrix project to avoid a SCM checkout
          for each target in the matrix. This can be useful if checkout takes a long time
          and if the build step can build concurrent builds from the same SCM area.
          It's implemented as a option when setting up the Matrix project, if not
          used/checked the Matrix project will work as usual.
          New: When a project got a configuration matrix, the source code is checked out multiple times:
          * Once for reference incase of poll scm on schedule.
          * Once per matrix item, increasing proportionaly to the complexity.

          It would be great to have a strategy, which runs checkout only once in the master build.

          A patch proposal from @asolsson (initial implementation before creation of SCMCheckoutStrategy )
          {quote}
          I've implemented an enhancement to the matrix project to avoid a SCM checkout
          for each target in the matrix. This can be useful if checkout takes a long time
          and if the build step can build concurrent builds from the same SCM area.
          It's implemented as a option when setting up the Matrix project, if not
          used/checked the Matrix project will work as usual.
          {quote}
          Issue Type Original: Improvement [ 4 ] New: New Feature [ 2 ]
          Summary Original: Use same SCM checkout for all matrix entries New: Provide a SCMCheckoutStrategy to checkout only once for all matrix entries
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            Unassigned Unassigned
            asolsson asolsson
            Votes:
            33 Vote for this issue
            Watchers:
            31 Start watching this issue

              Created:
              Updated: