Bug 1294798

Summary: BuildConfig field for 'Perform builds in OpenShift' build step in Jenkins configure Job form is populated with default value of 'frontend' instead of actual stored value.
Product: OpenShift Container Platform Reporter: Ali Sogukpinar <asogukpi>
Component: BuildAssignee: Gabe Montero <gmontero>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: aos-bugs, bleanhar, bparees, jokerman, pruan, wewang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1308392 (view as bug list) Environment:
Last Closed: 2016-01-26 19:20:45 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1308392, 1310567    
Attachments:
Description Flags
UI of build part
none
cancel build in openshift
none
ui of cancel build part none

Description Ali Sogukpinar 2015-12-30 11:32:33 UTC
Description of problem:

Jenkins job configuration page doesn't present the actual value stored for buildConfig field of a 'Perform builds in OpenShift'  build step.



Version-Release number of selected component (if applicable):
OSE v3.1 

docker.io/openshift/jenkins-1-centos7                       latest              212bac2225d0        6 days ago          655.4 MB

How reproducible:

- Create a Jenkins Build Job with 'Perform builds in OpenShift' 
- Set BuildConfig value other than  'frontend' and save the build job
- Click on Configure job link.  
 

Actual results:

BuilConfig filed will be populated with 'frontend' value

Expected results:

BuildConfig form field populated with the actual value

Additional info:

Builds using a build config with a different name than 'frontend' is working hence, it is just a form population issue.

Comment 1 Ali Sogukpinar 2015-12-30 11:48:08 UTC
Upstream issue has been created.

https://github.com/openshift/jenkins-plugin/issues/10

Comment 2 Gabe Montero 2016-01-04 15:32:54 UTC
This was reported upstream as well via https://github.com/openshift/jenkins-plugin/issues/10

I have a fix in hand based on that report, it is just a question of getting through the workflow of pushing through the jenkins updated center process and then image update process.

I'll move this bug to on QA once that process is complete.

Comment 3 Gabe Montero 2016-01-08 15:18:52 UTC
v1.0.5 of the plugin is now available in both the centos jenkins image on docker.io and the rhel jenkins image on ci.dev.openshift.redhat.com:5000.

Please verify at your convenience.

Comment 4 wewang 2016-01-11 03:21:42 UTC
Created attachment 1113486 [details]
UI of build part

Comment 5 wewang 2016-01-11 03:39:50 UTC
Created attachment 1113490 [details]
cancel build in openshift

Comment 6 wewang 2016-01-11 03:40:57 UTC
the bug is the same as I reported :
https://bugzilla.redhat.com/show_bug.cgi?id=1292021#c6

tested on 
openshift/jenkins-1-rhel7  0d20b0550ae8
openshift/jenkins-1-centos7 latest

a. BuildConfig field for 'Perform builds in OpenShift' build step in Jenkins configure Job form is  actual stored value instead of 
default value of 'frontend' (see attachment 1113486 [details])

b. but Post-build Actions field for 'Cancel builds in openshift' build step in jenkins configure job form is not actual stored value instead of default value of 'frontend' (see attachment 1113490 [details])

Comment 7 Gabe Montero 2016-01-11 14:42:36 UTC
Yep, I attempted to examine and correct the other steps for the issue similar to OpenShiftBuilder but I missed one.

The (lengthy) fix propagation status will commence shortly.

Comment 8 Gabe Montero 2016-01-12 05:23:18 UTC
Ok I believe v1.0.6 of the plugin is available for both centos and rhel jenkins images.

Please try to verify again.  Thanks.

Comment 9 wewang 2016-01-12 06:15:27 UTC
Created attachment 1113854 [details]
ui of cancel build part

Comment 10 wewang 2016-01-12 06:25:30 UTC
verified in 
openshift/jenkins-1-rhel7  35f4fe0781ac
openshift/jenkins-1-centos7  latest

have been corrected the build steps ,pls see attachment 1113855 [details]

Comment 11 Gabe Montero 2016-01-12 14:50:30 UTC
Cool deal - thanks @wenwang

Comment 13 errata-xmlrpc 2016-01-26 19:20:45 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/RHSA-2016:0070