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

Allow entering search path for git blame

    Details

    • Similar Issues:
    • Released As:
      7.0.0

      Description

      The warnings plugin searches the build directory and parents for a git repository, but this fails for out-of-tree-builds.

      • out-of-tree build is preferred, having for ex. ${WORKSPACE}/src for sources and ${WORKSPACE}/build for build output.
      • the build runs in the build directory, hence paths are based on it and the warningsplugin should run from this directory
      • switching across agents/docker containers could make things even harder (need to stash/unstash).

      eg. "checkout agent" checks out from git, stashes sources without the .git database (or might make a shallow clone).
      "build agent" unstashes sources, starts a docker container for the build and runs the warning plugin afterwards.

      I dont have a perfect solution, but having a parameter for either adding the path to the git repository on disk would help. even better would be to give the plugin the repository + commit information so it can pull more stuff if needed.

        Attachments

          Issue Links

            Activity

            Hide
            drulli Ulli Hafner added a comment -

            I'm not sure if a better solution for JENKINS-57260 would be to record the Git repositories of a build and use that information later on.

            Show
            drulli Ulli Hafner added a comment - I'm not sure if a better solution for JENKINS-57260 would be to record the Git repositories of a build and use that information later on.

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                nolange79 Norbert Lange
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: