jenkinsci / docker

Docker official jenkins repo
https://hub.docker.com/r/jenkins/jenkins
MIT License
6.67k stars 4.52k forks source link

Jenkins UI shows wrong plugin version #1223

Closed mkrzywanski closed 2 years ago

mkrzywanski commented 2 years ago

Version report

Jenkins and plugins versions report:

Jenkins: 2.317
OS: Linux - 5.10.16.3-microsoft-standard-WSL2
---
ace-editor:1.1
antisamy-markup-formatter:1.1
apache-httpcomponents-client-4-api:4.5.13-1.0
authentication-tokens:1.1
azure-credentials:198.vf9c2fdfde55c
azure-keyvault:129.vb7a46bc7b588
azure-sdk:61.v6a8af1f5f5b6
azure-vm-agents:797.v31f530348574
bootstrap4-api:4.6.0-3
bootstrap5-api:5.1.1-1
bouncycastle-api:2.20
branch-api:2.7.0
build-user-vars-plugin:1.8
caffeine-api:2.9.2-29.v717aac953ff3
checks-api:1.7.2
cloud-stats:0.27
cloudbees-folder:6.16
command-launcher:1.2
configuration-as-code:1.54
credentials:2.6.1
credentials-binding:1.27
display-url-api:2.3.5
docker-commons:1.5
docker-workflow:1.14
durable-task:1.39
echarts-api:5.2.1-2
extended-read-permission:3.2
font-awesome-api:5.15.4-1
git:4.9.0
git-client:3.10.0
git-server:1.10
handlebars:3.0.8
icon-shim:1.0.3
jackson2-api:2.13.0-230.v59243c64b0a5
jdk-tool:1.0
jquery-detached:1.2.1
jquery3-api:3.6.0-2
jsch:0.1.55.2
junit:1.53
ldap:2.7
lockable-resources:2.12
mailer:1.34
matrix-auth:2.6.8
matrix-project:1.19
momentjs:1.1.1
pipeline-build-step:2.15
pipeline-graph-analysis:1.11
pipeline-input-step:2.12
pipeline-milestone-step:1.3.2
pipeline-model-api:1.9.2
pipeline-model-declarative-agent:1.1.1
pipeline-model-definition:1.9.2
pipeline-model-extensions:1.9.2
pipeline-rest-api:2.19
pipeline-stage-step:2.5
pipeline-stage-tags-metadata:1.9.2
pipeline-stage-view:2.19
plain-credentials:1.7
plugin-util-api:2.5.0
popper-api:1.16.1-2
popper2-api:2.10.2-1
resource-disposer:0.16
role-strategy:3.2.0
scm-api:2.6.5
script-security:1.78
snakeyaml-api:1.29.1
ssh-credentials:1.19
sshd:3.1.0
structs:1.23
throttle-concurrents:2.4
timestamper:1.13
trilead-api:1.0.13
windows-slaves:1.0
workflow-aggregator:2.6
workflow-api:2.47
workflow-basic-steps:2.24
workflow-cps:2.94
workflow-cps-global-lib:2.21
workflow-durable-task-step:2.40
workflow-job:2.42
workflow-multibranch:2.26
workflow-scm-step:2.13
workflow-step-api:2.24
workflow-support:3.8
ws-cleanup:0.39
Docker image jenkins/jenkins:2.317-jdk8

Reproduction steps

Results

When inspecting the ldap plugin version from Jenkins UI it shows that 2.7 version is installed even though I requested 2.6 version and logs confirm this version is installed. Also running script in jenkins console shows wrong version 2.7 Expected result: Plugin in UI and console script should match the version that is requested and viewed in plugin installation logs.

Actual result: Jenkins UI and console scripts show wrong version od requested plugin

MarkEWaite commented 2 years ago

I tested with Jenkins plugin manager 2.11.1 and the 2.319.1 Docker image and was unable to duplicate the problem. The plugins.txt file that I used was:

azure-keyvault:129.vb7a46bc7b588
azure-vm-agents:797.v31f530348574
build-user-vars-plugin:1.8
cloudbees-folder:6.16
configuration-as-code:1.54
credentials:2.6.1
git:4.9.0
junit:1.47
ldap:2.6
role-strategy:3.2.0
throttle-concurrents:2.4
timestamper:1.13
workflow-aggregator:2.6
ws-cleanup:0.39

The commands that I used to start my test case were:

mkdir plugins
java -jar ../jenkins-plugin-manager-2.11.1.jar \
    --jenkins-version 2.319.1 \
    --latest false \
    --verbose \
    --plugin-download-directory plugins \
    --plugin-file plugins.txt
JENKINS_HOME=. java -jar ../jenkins-2.319.1.war

When that starts, I move through the install wizard and select to install no plugins (relying on the plugins downloaded). LDAP plugin 2.6 is included in that installation.

I did need to add junit:1.47 to the list of plugins for some reason.