-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
5.2.0
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