-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins: 2.414.1
OS: Linux - 4.18.0-513.9.1.el8_9.x86_64
Java: 11.0.16.1 - Oracle Corporation (Java HotSpot(TM) 64-Bit Server VM)
---
active-directory:2.34
analysis-model-api:11.15.0
ant:497.v94e7d9fffa_b_9
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
apache-httpcomponents-client-5-api:5.3.1-1.0
artifactory:4.0.3
audit-trail:361.v82cde86c784e
authentication-tokens:1.53.v1c90fd9191a_b_
aws-credentials:218.v1b_e9466ec5da_
aws-java-sdk-ec2:1.12.633-430.vf9a_e567a_244f
aws-java-sdk-minimal:1.12.633-430.vf9a_e567a_244f
badge:1.9.1
basic-branch-build-strategies:81.v05e333931c7d
bootstrap5-api:5.3.2-3
bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9
branch-api:2.1128.v717130d4f816
build-blocker-plugin:1.7.9
build-name-setter:2.4.1
build-timeout:1.32
build-user-vars-plugin:1.9
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.0.2
cloud-stats:336.v788e4055508b_
cloudbees-disk-usage-simple:203.v3f46a_7462b_1a_
cloudbees-folder:6.858.v898218f3609d
command-launcher:107.v773860566e2e
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.11.0-95.v22a_d30ee5d36
conditional-buildstep:1.4.3
config-file-provider:959.vcff671a_4518b_
configuration-as-code:1775.v810dc950b_514
coverage:1.10.0
credentials:1319.v7eb_51b_3a_c97b_
credentials-binding:642.v737c34dea_6c2
data-tables-api:1.13.6-5
disk-usage:1.2
display-url-api:2.200.vb_9327d658781
docker-commons:439.va_3cb_0a_6a_fb_29
docker-java-api:3.3.4-86.v39b_a_5ede342c
docker-plugin:1.5
docker-workflow:572.v950f58993843
durable-task:543.v262f6a_803410
echarts-api:5.4.0-7
envinject:2.908.v66a_774b_31d93
envinject-api:1.199.v3ce31253ed13
extended-read-permission:53.v6499940139e5
external-monitor-job:215.v2e88e894db_f8
favorite:2.4.3
font-awesome-api:6.5.1-2
forensics-api:2.3.0
ghprb:1.42.2
git:5.2.1
git-client:4.6.0
git-forensics:2.0.0
git-parameter:0.9.19
git-server:114.v068a_c7cc2574
github:1.37.3.1
github-api:1.318-461.v7a_c09c9fa_d63
github-branch-source:1771.v59b_6a_fa_1b_89e
github-checks:554.vb_ee03a_000f65
github-pr-comment-build:96.v9ff13b69dd66
github-pullrequest:0.6.1
github-scm-trait-notification-context:40.vfa_7f31a_b_d7f8
gradle:2.9
groovy:457.v99900cb_85593
groovy-postbuild:228.vcdb_cf7265066
gson-api:2.10.1-15.v0d99f670e0a_7
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
hashicorp-vault-pipeline:1.4
hashicorp-vault-plugin:364.vf5d54b_3dc313
htmlpublisher:1.32
http_request:1.18
instance-identity:185.v303dc7c645f9
ionicons-api:56.v1b_1c8c49374e
jackson2-api:2.16.1-373.ve709c6871598
jakarta-activation-api:2.0.1-3
jakarta-mail-api:2.0.1-3
javadoc:243.vb_b_503b_b_45537
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.9-1
jdk-tool:73.vddf737284550
jersey2-api:2.41-133.va_03323b_a_1396
jjwt-api:0.11.5-77.v646c772fddb_0
jnr-posix-api:3.1.18-1
job-dsl:1.87
job-import-plugin:3.6
jobConfigHistory:1229.v3039470161a_d
joda-time-api:2.12.6-21.vca_fd74418fb_7
jquery:1.12.4-1
jquery3-api:3.7.1-1
jsch:0.2.16-86.v42e010d9484b_
json-api:20231013-17.v1c97069404b_e
json-path-api:2.9.0-33.v2527142f2e1d
junit:1256.v002534a_5f33e
kubernetes:4054.v2da_8e2794884
kubernetes-client-api:6.10.0-240.v57880ce8b_0b_2
kubernetes-credentials:0.11
ldap:711.vb_d1a_491714dc
localization-support:1.2
localization-zh-cn:371.v23851f835d6b_
lockable-resources:1232.v512d6c434eb_d
m2release:0.16.4
mailer:463.vedf8358e006b_
mapdb-api:1.0.9-28.vf251ce40855d
mask-passwords:173.v6a_077a_291eb_5
matrix-auth:3.2.1
matrix-project:822.824.v14451b_c0fd42
maven-plugin:3.23
metrics:4.2.21-449.v6960d7c54c69
mina-sshd-api-common:2.12.0-90.v9f7fb_9fa_3d3b_
mina-sshd-api-core:2.12.0-90.v9f7fb_9fa_3d3b_
monitoring:1.95.0
node-iterator-api:55.v3b_77d4032326
nodejs:1.6.1
nodelabelparameter:1.12.0
okhttp-api:4.11.0-157.v6852a_a_fa_ec11
pam-auth:1.10
parameter-separator:87.va_1816d0b_39d1
parameterized-trigger:787.v665fcf2a_830b_
periodicbackup:2.0
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-github:2.8-159.09e4403bc62f
pipeline-githubnotify-step:49.vf37bf92d2bc8
pipeline-graph-analysis:202.va_d268e64deb_3
pipeline-groovy-lib:689.veec561a_dee13
pipeline-input-step:477.v339683a_8d55e
pipeline-maven:1376.v18876d10ce9c
pipeline-maven-api:1376.v18876d10ce9c
pipeline-milestone-step:111.v449306f708b_7
pipeline-model-api:2.2150.v4cfd8916915c
pipeline-model-definition:2.2150.v4cfd8916915c
pipeline-model-extensions:2.2150.v4cfd8916915c
pipeline-rest-api:2.34
pipeline-stage-step:305.ve96d0205c1c6
pipeline-stage-tags-metadata:2.2150.v4cfd8916915c
pipeline-stage-view:2.34
pipeline-utility-steps:2.16.0
plain-credentials:143.v1b_df8b_d3b_e48
plot:2.1.12
plugin-util-api:3.8.0
prism-api:1.29.0-8
prometheus:2.5.1
promoted-builds:945.v597f5c6a_d3fd
rebuild:330.v645b_7df10e2a_
resource-disposer:0.23
role-strategy:689.v731678c3e0eb_
run-condition:1.7
saml:4.464.vea_cb_75d7f5e0
scm-api:676.v886669a_199a_a_
script-security:1313.v7a_6067dc7087
simple-theme-plugin:160.vb_76454b_67900
slack:684.v833089650554
slave-status:56.v1798df8ff586
snakeyaml-api:2.2-111.vc6598e30cc65
sonar:2.17.1
ssh-agent:346.vda_a_c4f2c8e50
ssh-credentials:308.ve4497b_ccd8f4
ssh-slaves:2.948.vb_8050d697fec
sshd:3.322.v159e91f6a_550
structs:325.vcb_307d2a_2782
throttle-concurrents:2.14
timestamper:1.26
token-macro:400.v35420b_922dcb_
trilead-api:2.133.vfb_8a_7b_9c5dd1
variant:60.v7290fc0eb_b_cd
violation-comments-to-github:1.96
warnings-ng:10.7.0
workflow-aggregator:596.v8c21c963d92d
workflow-api:1289.va_cf779f32df0
workflow-basic-steps:1042.ve7b_140c4a_e0c
workflow-cps:3837.v305192405b_c0
workflow-durable-task-step:1317.v5337e0c1fe28
workflow-job:1385.vb_58b_86ea_fff1
workflow-multibranch:770.v1a_d0708dd1f6
workflow-scm-step:415.v434365564324
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:865.v43e78cc44e0d
ws-cleanup:0.45Jenkins: 2.414.1 OS: Linux - 4.18.0-513.9.1.el8_9.x86_64 Java: 11.0.16.1 - Oracle Corporation (Java HotSpot(TM) 64-Bit Server VM) --- active-directory:2.34 analysis-model-api:11.15.0 ant:497.v94e7d9fffa_b_9 antisamy-markup-formatter:162.v0e6ec0fcfcf6 apache-httpcomponents-client-4-api:4.5.14-208.v438351942757 apache-httpcomponents-client-5-api:5.3.1-1.0 artifactory:4.0.3 audit-trail:361.v82cde86c784e authentication-tokens:1.53.v1c90fd9191a_b_ aws-credentials:218.v1b_e9466ec5da_ aws-java-sdk-ec2:1.12.633-430.vf9a_e567a_244f aws-java-sdk-minimal:1.12.633-430.vf9a_e567a_244f badge:1.9.1 basic-branch-build-strategies:81.v05e333931c7d bootstrap5-api:5.3.2-3 bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9 branch-api:2.1128.v717130d4f816 build-blocker-plugin:1.7.9 build-name-setter:2.4.1 build-timeout:1.32 build-user-vars-plugin:1.9 caffeine-api:3.1.8-133.v17b_1ff2e0599 checks-api:2.0.2 cloud-stats:336.v788e4055508b_ cloudbees-disk-usage-simple:203.v3f46a_7462b_1a_ cloudbees-folder:6.858.v898218f3609d command-launcher:107.v773860566e2e commons-lang3-api:3.13.0-62.v7d18e55f51e2 commons-text-api:1.11.0-95.v22a_d30ee5d36 conditional-buildstep:1.4.3 config-file-provider:959.vcff671a_4518b_ configuration-as-code:1775.v810dc950b_514 coverage:1.10.0 credentials:1319.v7eb_51b_3a_c97b_ credentials-binding:642.v737c34dea_6c2 data-tables-api:1.13.6-5 disk-usage:1.2 display-url-api:2.200.vb_9327d658781 docker-commons:439.va_3cb_0a_6a_fb_29 docker-java-api:3.3.4-86.v39b_a_5ede342c docker-plugin:1.5 docker-workflow:572.v950f58993843 durable-task:543.v262f6a_803410 echarts-api:5.4.0-7 envinject:2.908.v66a_774b_31d93 envinject-api:1.199.v3ce31253ed13 extended-read-permission:53.v6499940139e5 external-monitor-job:215.v2e88e894db_f8 favorite:2.4.3 font-awesome-api:6.5.1-2 forensics-api:2.3.0 ghprb:1.42.2 git:5.2.1 git-client:4.6.0 git-forensics:2.0.0 git-parameter:0.9.19 git-server:114.v068a_c7cc2574 github:1.37.3.1 github-api:1.318-461.v7a_c09c9fa_d63 github-branch-source:1771.v59b_6a_fa_1b_89e github-checks:554.vb_ee03a_000f65 github-pr-comment-build:96.v9ff13b69dd66 github-pullrequest:0.6.1 github-scm-trait-notification-context:40.vfa_7f31a_b_d7f8 gradle:2.9 groovy:457.v99900cb_85593 groovy-postbuild:228.vcdb_cf7265066 gson-api:2.10.1-15.v0d99f670e0a_7 handy-uri-templates-2-api:2.1.8-30.v7e777411b_148 hashicorp-vault-pipeline:1.4 hashicorp-vault-plugin:364.vf5d54b_3dc313 htmlpublisher:1.32 http_request:1.18 instance-identity:185.v303dc7c645f9 ionicons-api:56.v1b_1c8c49374e jackson2-api:2.16.1-373.ve709c6871598 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:243.vb_b_503b_b_45537 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.9-1 jdk-tool:73.vddf737284550 jersey2-api:2.41-133.va_03323b_a_1396 jjwt-api:0.11.5-77.v646c772fddb_0 jnr-posix-api:3.1.18-1 job-dsl:1.87 job-import-plugin:3.6 jobConfigHistory:1229.v3039470161a_d joda-time-api:2.12.6-21.vca_fd74418fb_7 jquery:1.12.4-1 jquery3-api:3.7.1-1 jsch:0.2.16-86.v42e010d9484b_ json-api:20231013-17.v1c97069404b_e json-path-api:2.9.0-33.v2527142f2e1d junit:1256.v002534a_5f33e kubernetes:4054.v2da_8e2794884 kubernetes-client-api:6.10.0-240.v57880ce8b_0b_2 kubernetes-credentials:0.11 ldap:711.vb_d1a_491714dc localization-support:1.2 localization-zh-cn:371.v23851f835d6b_ lockable-resources:1232.v512d6c434eb_d m2release:0.16.4 mailer:463.vedf8358e006b_ mapdb-api:1.0.9-28.vf251ce40855d mask-passwords:173.v6a_077a_291eb_5 matrix-auth:3.2.1 matrix-project:822.824.v14451b_c0fd42 maven-plugin:3.23 metrics:4.2.21-449.v6960d7c54c69 mina-sshd-api-common:2.12.0-90.v9f7fb_9fa_3d3b_ mina-sshd-api-core:2.12.0-90.v9f7fb_9fa_3d3b_ monitoring:1.95.0 node-iterator-api:55.v3b_77d4032326 nodejs:1.6.1 nodelabelparameter:1.12.0 okhttp-api:4.11.0-157.v6852a_a_fa_ec11 pam-auth:1.10 parameter-separator:87.va_1816d0b_39d1 parameterized-trigger:787.v665fcf2a_830b_ periodicbackup:2.0 pipeline-build-step:540.vb_e8849e1a_b_d8 pipeline-github:2.8-159.09e4403bc62f pipeline-githubnotify-step:49.vf37bf92d2bc8 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:689.veec561a_dee13 pipeline-input-step:477.v339683a_8d55e pipeline-maven:1376.v18876d10ce9c pipeline-maven-api:1376.v18876d10ce9c pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2150.v4cfd8916915c pipeline-model-definition:2.2150.v4cfd8916915c pipeline-model-extensions:2.2150.v4cfd8916915c pipeline-rest-api:2.34 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2150.v4cfd8916915c pipeline-stage-view:2.34 pipeline-utility-steps:2.16.0 plain-credentials:143.v1b_df8b_d3b_e48 plot:2.1.12 plugin-util-api:3.8.0 prism-api:1.29.0-8 prometheus:2.5.1 promoted-builds:945.v597f5c6a_d3fd rebuild:330.v645b_7df10e2a_ resource-disposer:0.23 role-strategy:689.v731678c3e0eb_ run-condition:1.7 saml:4.464.vea_cb_75d7f5e0 scm-api:676.v886669a_199a_a_ script-security:1313.v7a_6067dc7087 simple-theme-plugin:160.vb_76454b_67900 slack:684.v833089650554 slave-status:56.v1798df8ff586 snakeyaml-api:2.2-111.vc6598e30cc65 sonar:2.17.1 ssh-agent:346.vda_a_c4f2c8e50 ssh-credentials:308.ve4497b_ccd8f4 ssh-slaves:2.948.vb_8050d697fec sshd:3.322.v159e91f6a_550 structs:325.vcb_307d2a_2782 throttle-concurrents:2.14 timestamper:1.26 token-macro:400.v35420b_922dcb_ trilead-api:2.133.vfb_8a_7b_9c5dd1 variant:60.v7290fc0eb_b_cd violation-comments-to-github:1.96 warnings-ng:10.7.0 workflow-aggregator:596.v8c21c963d92d workflow-api:1289.va_cf779f32df0 workflow-basic-steps:1042.ve7b_140c4a_e0c workflow-cps:3837.v305192405b_c0 workflow-durable-task-step:1317.v5337e0c1fe28 workflow-job:1385.vb_58b_86ea_fff1 workflow-multibranch:770.v1a_d0708dd1f6 workflow-scm-step:415.v434365564324 workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:865.v43e78cc44e0d ws-cleanup:0.45
Firstly, I'm fairly new to Jenkins, so apologies if I'm not providing useful details or if I'm using the wrong terminology. This issue could also be pilot error, apologies if so.
I have created a multi-branch pipeline using the Github branch source plugin that runs a maven build and uses recordIssues to pick up Javac, ErrorProne and Spotbugs issues, as well as scanning for open tasks (TODOs etc).
My Jenkins root path is "/apps/jenkins/latest", which is a symlink to "/apps/jenkins/2.414.1". This seems to throw off the analysis tools, as all the errors from Javac etc. in the console output use the full resolved path (i.e. paths starting with "/apps/jenkins/2.414.1", and the plugin then fails to find those files in the workspace as it's looking for files relative to "/apps/jenkins/latest").
This affects all the tools, with the exception of the tasks scanner, which I'm assuming the warnings plugin is invoking rather than just consuming a report/console output from.
As far as I can tell the impact of this is:
- I cannot click through to see the code annotated with warnings in the Jenkins UI
- I do not see "SCM Blames" or "SCM Forensics" tabs in the Details view
- The files in the PR with warnings do not get GitHub check annotations
All of this works as expected for the open tasks scanner.
Some additional information, in case it's useful:
Here is my pipeline:
pipeline { agent any tools { maven 'Maven 3' jdk 'Java 11' } stages { stage('Git mining') { steps { discoverReferenceBuild() mineRepository() gitDiffStat() } } stage('Compile') { steps { sh 'mvn --no-transfer-progress clean install -DskipTests' recordIssues(tools: [ errorProne(reportEncoding: 'UTF-8'), java(reportEncoding: 'UTF-8'), mavenConsole(), taskScanner(highTags:'FIXME', normalTags:'TODO', includePattern: '**/*.java', excludePattern: 'target/**/*')]) } } stage('Static Analysis') { steps { sh 'mvn --no-transfer-progress spotbugs:spotbugs' recordIssues(tools: [spotBugs(reportEncoding: 'UTF-8', useRankAsPriority: true)]) } } } }
When I run this in the Jenkins script console:
println("Root path: ${Jenkins.instance.getRootPath()}") println("Resolved root path: ${Jenkins.instance.getRootPath().readLink()}")
I get the following output:
Root path: /apps/jenkins/latest Resolved root path: /apps/jenkins/2.414.1
The checks have warning icons next to them when I view the info page for a build. The tooltip on the icon is:
Some errors have been logged during recording, click to see these errors in a details view.
When I go to that details view I see logs like this (this is for ErrorProne):
Error Messages:
Errors while obtaining repository statistics No statistics found for file '../../../2.414.1/workspace/<job_name>_PR-<pr_number>/path/to/file.java' <19 more of these> ... skipped logging of 125 additional errors ...
Information Messages
Parsing console log (workspace: '/apps/jenkins/latest/workspace/<job_name>_PR-<pr_number>') Successfully parsed console log -> found 195 issues (skipped 0 duplicates) Post processing issues on 'Master' with source code encoding 'US-ASCII' Creating SCM blamer to obtain author and commit information for affected files -> Git blamer successfully created in working tree '/apps/jenkins/latest/workspace/<job_name>_PR-<pr_number>' Resolving file names for all issues in workspace '/apps/jenkins/latest/workspace/<job_name>_PR-<pr_number>' -> resolved paths in source directory (145 found, 0 not found) Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files) -> resolved module names for 195 issues Resolving package names (or namespaces) by parsing the affected files -> resolved package names of 145 affected files No filter has been set, publishing all 195 issues Creating fingerprints for all affected code blocks to track issues over different builds -> created fingerprints for 195 issues (skipped 0 issues) Invoking Git blamer to create author and commit information for 145 affected files -> GIT_COMMIT env = 'HEAD' -> Git commit ID = '<sha>' -> Git working tree = '/apps/jenkins/latest/workspace/<job_name>_PR-<pr_number>' -> blamed authors of issues in 0 files Blaming of authors took 1 seconds Copying affected files to Jenkins' build folder '/apps/jenkins/latest/jobs/<job_name>/branches/PR-<pr_number>/builds/5/files-with-issues' -> 0 copied, 195 not in workspace, 0 not-found, 0 with I/O error Extracting repository forensics for 145 affected files (files in repository: 1676) -> 0 affected files processed Obtaining reference build from reference recorder -> Found '<job name> ยป master #1' Using reference build '<job name>/master #1' to compute new, fixed, and outstanding issues Issues delta (vs. reference build): outstanding: 142, new: 53, fixed: 53 No quality gates have been set - skipping Health report is disabled - skipping Created analysis result for 195 issues (found 53 new issues, fixed 53 issues) Attaching ResultAction with ID 'error-prone' to build '<job name>/PR-<pr_number> #5'.
- links to