Bug 1369680

Summary: Jenkins some plugins version are too old in jenkins image
Product: OpenShift Container Platform Reporter: wewang <wewang>
Component: ImageStreamsAssignee: Gabe Montero <gmontero>
Status: CLOSED ERRATA QA Contact: Wang Haoran <haowang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, bparees, gmontero, jokerman, mmccomas, tdawson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: A few plugins brought in by Jenkins core were not getting pinned during construction of the OpenShift Jenkins Image for RHEL. Consequence: Some plugins brought in by Jenkins core were not at the version levels expected in the OpenShift Jenkins Image for RHEL. Fix: Add pinning of plugins in question in the Dockerfile used to construct the OpenShift Jenkins Image for RHEL. Result: All plugins in the OpenShift Jenkins Image for RHEL are at the expected version levels.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-27 09:10:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
matrix project plugin none

Comment 1 Ben Parees 2016-08-24 13:56:07 UTC
Scott, not sure if this is an issue of needing to package the newer versions of the plugins, or it's another repo tagging problem.

Wen, that file has no actual bearing on the plugin versions in rhel, it's only used for centos.  We should probably remove that file from the rhel image, but I would still expect us to have packaged versions of those plugin versions installed.

Comment 3 wewang 2016-08-25 02:02:49 UTC
tested openshift3/jenkins-1-rhel7:1.651.2-19, 
plugins are updated as below version:
Durable Task Plugin    1.10
Credentials Plugin     2.1.0

but matrix-project plugin in is 1.4.1 ,not 1.7 ,should be updated too.

Comment 4 wewang 2016-08-25 02:03:31 UTC
Created attachment 1193844 [details]
matrix project plugin

Comment 5 Scott Dodson 2016-08-25 13:50:11 UTC
RPM content must be bad, it's got the "right" version of the rpm installed.

bash-4.2$ rpm -q jenkins-plugin-matrix-project
jenkins-plugin-matrix-project-1.7-1.el7.x86_64

Comment 6 Ben Parees 2016-08-25 13:51:19 UTC
@Scott, hm. I believe Troy did all the packaging on those.

Comment 7 Scott Dodson 2016-08-25 20:47:45 UTC
The MD5 sum of the plugin inside the container matches the md5sum as downloaded from jenkins-ci for matrix-project 1.7. Can we confirm what QE is seeing in comment #4 and see if there's any other way this could be happening?

# docker run -u root -it --entrypoint /usr/bin/md5sum brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/jenkins-1-rhel7:1.651.2-19 /usr/lib64/jenkins/matrix-project.hpi

7c592fbf784ecbee22da6fef775859d0  /usr/lib64/jenkins/matrix-project.hpi

# wget -q http://mirrors.jenkins-ci.org/plugins/matrix-project/1.7/matrix-project.hpi
# md5sum matrix-project.hpi

7c592fbf784ecbee22da6fef775859d0  matrix-project.hpi

Comment 8 Gabe Montero 2016-08-25 21:08:57 UTC
need to ping matrix-project as well

Comment 9 Gabe Montero 2016-08-25 21:09:10 UTC
https://github.com/openshift/jenkins/pull/148

Comment 10 wewang 2016-08-26 08:02:10 UTC
tested with brew....openshift3/jenkins-1-rhel7 023723e2e0ff

matrix project plugin also 1.4.1

Comment 11 Gabe Montero 2016-08-26 11:56:07 UTC
Yeah this got in after Scott started the rhel image build; did not expect this to change with the image you tried @WangHaoran

Comment 12 Gabe Montero 2016-08-26 18:57:37 UTC
brew pulp latest now has pull 148 and I confirmed that the matrix project plugin is now at 1.7

QE can verify

Comment 13 wewang 2016-08-29 02:37:48 UTC
verified with openshift3/jenkins-1-rhel7 a2b7f45b9e0d
now it's 1.7 ,thanks

Comment 15 errata-xmlrpc 2016-09-27 09:10:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1937