Bug 1294798 - 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.
Summary: BuildConfig field for 'Perform builds in OpenShift' build step in Jenkins con...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Gabe Montero
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks: 1308392 1310567
TreeView+ depends on / blocked
 
Reported: 2015-12-30 11:32 UTC by Ali Sogukpinar
Modified: 2022-07-09 07:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1308392 (view as bug list)
Environment:
Last Closed: 2016-01-26 19:20:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI of build part (61.33 KB, image/png)
2016-01-11 03:21 UTC, wewang
no flags Details
cancel build in openshift (46.96 KB, image/png)
2016-01-11 03:39 UTC, wewang
no flags Details
ui of cancel build part (57.41 KB, image/png)
2016-01-12 06:15 UTC, wewang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:0070 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 3.1.1 bug fix and enhancement update 2016-01-27 00:12:41 UTC

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


Note You need to log in before you can comment on or make changes to this bug.