[JIRA] (JENKINS-57509) Blaming not executed on first build from pipeline script

4 views
Skip to first unread message

andipabst25@gmail.com (JIRA)

unread,
May 16, 2019, 11:43:02 AM5/16/19
to jenkinsc...@googlegroups.com
Andreas Pabst created an issue
 
Jenkins / Bug JENKINS-57509
Blaming not executed on first build from pipeline script
Issue Type: Bug Bug
Assignee: Unassigned
Components: warnings-ng-plugin
Created: 2019-05-16 15:42
Priority: Minor Minor
Reporter: Andreas Pabst

When creating a pipeline with a script, the git blamer is not executed on the first build of the pipeline.

Steps to reproduce:

1.  Create a pipeline with the following script:

node {
    stage ('Build and Analysis') {
        git 'https://github.com/jenkinsci/warnings-ng-plugin.git'
        echo '[javac] src/main/java/io/jenkins/plugins/analysis/warnings/AndroidLint.java:10: warning: Test Warning for Jenkins'
        recordIssues tool: java()
    }
}

2. Build the pipeline

3. The console output shows, that the git blaming was skipped. Also, the blame table is missing from the build overview.

Skipping issues blame since Git is the only supported SCM up to now.
...
[Java] Skipping blaming as requested in the job configuration

4. Build the pipeline again

5. The console output now shows the log of the blamer, and the blame table is visible in the build overview.

[Java] Invoking Git blamer to create author and commit information for all affected files
[Java] GIT_COMMIT env = 'HEAD'
[Java] Git working tree = '/var/data/workspace/Git Blame Test Pipeline'
[Java] Git commit ID = 'e22738842444330801f5d768e13d8b992c4b130d'
[Java] Job workspace = '/var/data/workspace/Git Blame Test Pipeline'
[Java] Created blame requests for 1 files - invoking Git blame on agent for each of the requests
[Java] -> blamed authors of issues in 1 files

 

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

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:07:11 AM7/2/19
to jenkinsc...@googlegroups.com
Change By: Ulli Hafner
Status: Open Fixed but Unreleased
Resolution: Fixed
Released As: 5.2.0

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:07:12 AM7/2/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages