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

Reveal changed paths in git commits to conditions in pipeline

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Major Major
    • git-plugin, pipeline
    • None

      It should be possible to skip some pipeline steps depending on paths changed in latest git commits.
      For example out of all components living in a repository I need to test only the changed ones, not spending time and resources for unchanged ones tested earlier.

      This could sound like a duplicate of JENKINS-36195, but there are couple key points.
      Use of Excluded Regions of checkout would add redundant fetch from remote for every conditional step.
      All the commits from previous NOT_BUILT builds should also be analyzed since pipeline skips steps when new build arrives.

          [JENKINS-37978] Reveal changed paths in git commits to conditions in pipeline

          Alexander Vorobiev created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]

          This is the main blocker for our team from moving main bunch of jobs to pipeline.
          Looking to the bunch of related issues votes (JENKINS-36195, JENKINS-35988, JENKINS-25048, JENKINS-36836) this seem to block many other teams.

          Alexander Vorobiev added a comment - This is the main blocker for our team from moving main bunch of jobs to pipeline. Looking to the bunch of related issues votes ( JENKINS-36195 , JENKINS-35988 , JENKINS-25048 , JENKINS-36836 ) this seem to block many other teams.

          Jesse Glick added a comment -

          currentBuild.changeSets

          Jesse Glick added a comment - currentBuild.changeSets
          Jesse Glick made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            vorobievalex Alexander Vorobiev
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: