The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Git Forensics Plugin

gitDiffStat: Git Diff Statistics

  • scm : String (optional)

discoverGitReferenceBuild: Discover Git reference build

  • defaultBranch : String (optional)
  • latestBuildIfNotFound : boolean (optional)
  • maxCommits : int (optional)
    The Default value is 100 commits, so if the branch has more than 100 commits since the last contact with the master branch the reference finder will stop. If for some reason the finder will not be able to find an intersection between the current branch and the master branch (for unknown reason) this check will ensure that the finder will not take forever to search for it. But this scenario should not occur and usually developing branches should not be that far from the master branch.
  • referenceJob : String (optional)
    The reference job is the baseline that is used to determine which of the issues in the current build are new, outstanding, or fixed. This baseline is also used to determine the number of new issues for the quality gate evaluation.
  • scm : String (optional)
  • skipUnknownCommits : boolean (optional)
  • targetBranch : String (optional)

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?


See existing feedback here.