jenkinsci / label-linked-jobs-plugin

LabelPluginSettings
https://plugins.jenkins.io/label-linked-jobs/
2 stars 13 forks source link

Labels dashboard showing incorrect label usage (no usage) for jobs that use 'This build is parameterized' setting with 'Label' as parameter #14

Closed iklen5 closed 3 years ago

iklen5 commented 3 years ago

Hi, first of all, thank you for this cool plugin.

I have checked that job is parameterized correctly with 'Label' parameter and default-value matching label of existing nodes, but cannot get correct output on Label dashboard window.

Version report

Jenkins and plugins versions report:

Result
Jenkins: 2.277.4
OS: Linux - 4.15.0-135-generic
---
jquery3-api:3.6.0-1
ws-cleanup:0.39
jquery-detached:1.2.1
pipeline-stage-step:2.5
script-security:1.76
apache-httpcomponents-client-4-api:4.5.13-1.0
job-import-plugin:3.4
github:1.33.1
workflow-durable-task-step:2.38
junit:1.49
pipeline-stage-tags-metadata:1.8.4
postbuildscript:2.11.0
font-awesome-api:5.15.2-2
pipeline-input-step:2.12
pam-auth:1.6
jaxb:2.3.0.1
plugin-util-api:2.1.0
pipeline-model-extensions:1.8.4
windows-slaves:1.7
plain-credentials:1.7
popper-api:1.16.1-2
matrix-auth:2.6.6
jackson2-api:2.12.3
trilead-api:1.0.13
jdk-tool:1.5
git-server:1.9
lockable-resources:2.10
timestamper:1.12
workflow-cps-global-lib:2.19
jquery:1.12.4-1
ldap:1.26
branch-api:2.6.2
echarts-api:5.1.0-2
durable-task:1.36
mailer:1.34
pipeline-model-api:1.8.4
okhttp-api:3.14.9
token-macro:2.15
docker-commons:1.17
jjwt-api:0.11.2-9.c8b45b8bb173
build-name-setter:2.1.0
scm-api:2.6.4
bouncycastle-api:2.20
workflow-scm-step:2.12
workflow-step-api:2.23
ssh-credentials:1.18.1
email-ext:2.82
display-url-api:2.3.4
antisamy-markup-formatter:2.1
jobConfigHistory:2.27
pipeline-github-lib:1.0
workflow-job:2.40
jsch:0.1.55.2
matrix-project:1.18
gradle:1.36
envinject-api:1.7
snakeyaml-api:1.27.0
pipeline-build-step:2.13
workflow-support:3.8
github-api:1.123
authentication-tokens:1.4
subversion:2.14.1
git-client:3.7.1
label-linked-jobs:6.0.1
pipeline-milestone-step:1.3.2
workflow-aggregator:2.6
ssh-slaves:1.31.5
workflow-api:2.42
workflow-multibranch:2.23
github-branch-source:2.9.9
build-timeout:1.20
momentjs:1.1.1
credentials:2.3.18
pipeline-rest-api:2.19
workflow-basic-steps:2.23
ant:1.11
envinject:2.3.0
pipeline-graph-analysis:1.10
handlebars:3.0.8
pipeline-stage-view:2.19
disk-usage:0.28
cloudbees-folder:6.15
workflow-cps:2.90
pipeline-model-declarative-agent:1.1.1
checks-api:1.7.0
credentials-binding:1.24
nodelabelparameter:1.8.0
resource-disposer:0.15
docker-workflow:1.26
mapdb-api:1.0.9.0
structs:1.22
command-launcher:1.5
git:4.7.1
ace-editor:1.1
robot:3.0.1
pipeline-model-definition:1.8.4
bootstrap4-api:4.6.0-3
Controller - Linux (Ubuntu)
Slaves - Mixed (Win/Linux)

Reproduction steps

You can find screenshots below showing actual result with job and label configured:

Job configuration: job_parameterized_label

Label plugin activated: label_plugin_activation

Labels dashboard: labels_dashboard

Results

Expected result:

Dashboard showing correct job label usage.

Actual result:

Dashboard showing incorrect job label usage (no usage per label).

iklen5 commented 3 years ago

Sorry, now I see that jobs have to be configured with 'Restrict where this project can be run setting'. It is working now.

Best regards, ik