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

Add environment variable for last successful build commit

    XMLWordPrintable

Details

    Description

      I have a build script that uses the last commit to find out which files have changed and perform code style analysis on those files alone. Running across the entire code base is infeasible (as it is too large and hangs).

      However, there's no easy way to get the last commit that was built successfully for the current branch. Is it possible to add a GIT_PREVIOUS_COMMIT_SUCCESSFUL environment variable?

      Attachments

        Activity

          People

            Unassigned Unassigned
            drugcrazed Patrick Rose
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: