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 (optional)
    • Type: String

discoverGitReferenceBuild: Discover Git reference build

  • defaultBranch (optional)
    • Type: String
  • latestBuildIfNotFound (optional)
    • Type: boolean
  • maxCommits (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.
    • Type: int
  • referenceJob (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.
    • Type: String
  • scm (optional)
    • Type: String
  • skipUnknownCommits (optional)
    • Type: boolean
  • targetBranch (optional)
    • Type: String

discoverReferenceBuild: Discover reference build

  • referenceJob (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.
    • Type: String

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.