[JIRA] (JENKINS-57712) Allow entering search path for git blame

16 views
Skip to first unread message

nolange79@gmail.com (JIRA)

unread,
May 28, 2019, 7:27:02 AM5/28/19
to jenkinsc...@googlegroups.com
Norbert Lange created an issue
 
Jenkins / Improvement JENKINS-57712
Allow entering search path for git blame
Issue Type: Improvement Improvement
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-05-28 11:26
Environment: Jenkins 2.164.3-alpine via docker
Warnings NG Plugin 5.0.0
Analysis plugin 5.1.0
Priority: Minor Minor
Reporter: Norbert Lange

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

a.e.ukhanov@gmail.com (JIRA)

unread,
May 28, 2019, 8:30:02 AM5/28/19
to jenkinsc...@googlegroups.com
Alexander Ukhanov assigned an issue to Alexander Ukhanov
Change By: Alexander Ukhanov
Assignee: Ulli Hafner Alexander Ukhanov

a.e.ukhanov@gmail.com (JIRA)

unread,
May 28, 2019, 8:31:02 AM5/28/19
to jenkinsc...@googlegroups.com
Alexander Ukhanov assigned an issue to Ulli Hafner
Change By: Alexander Ukhanov
Assignee: Alexander Ukhanov Ulli Hafner

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 18, 2019, 10:41:03 AM7/18/19
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
Component/s: git-forensics-plugin

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 18, 2019, 10:41:04 AM7/18/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Improvement JENKINS-57712
 
Re: Allow entering search path for git blame

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.

ullrich.hafner@gmail.com (JIRA)

unread,
Oct 18, 2019, 10:39:04 AM10/18/19
to jenkinsc...@googlegroups.com
Ulli Hafner started work on Improvement JENKINS-57712
 
Change By: Ulli Hafner
Status: Open In Progress
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ullrich.hafner@gmail.com (JIRA)

unread,
Oct 18, 2019, 10:39:04 AM10/18/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Oct 23, 2019, 4:50:52 AM10/23/19
to jenkinsc...@googlegroups.com
Ulli Hafner resolved as Fixed
Change By: Ulli Hafner
Status: In Progress Resolved
Resolution: Fixed
Released As: 7.0.0
Reply all
Reply to author
Forward
0 new messages