Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1369702

Summary: Cannot cancel openshift build when setting post-build in jenkins
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, jokerman, mmccomas, tdawson
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The OpenShift Pipeline Plugin for Jenkins did not properly handle permission issues when attempting to access the Route for Jenkins. Consequence: Any of the steps or post-build actions in Jenkins jobs could fail unnecessarily with a Java stack trace citing an inability to access routes. Fix: Add correct error handling when attempting to list routes. Result: Jenkins jobs not longer fail unnecessarily if the token used by the OpenShift Pipeline Plugin for Jenkins to access the OpenShift API Master did not have permission to list routes.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-27 09:10:33 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:

Comment 1 wewang 2016-08-24 08:01:36 UTC
"Cancel openshift deployment" has the same problem, plugin updated before,  features are always works.

Comment 2 wewang 2016-08-24 08:12:54 UTC
Can you check build step and post-build actions, because when tested "Create resources in OpenShift" also report "com.openshift.restclient.authorization.ResourceForbiddenException"

Comment 3 Gabe Montero 2016-08-24 16:53:40 UTC

*** This bug has been marked as a duplicate of bug 1369746 ***

Comment 5 wewang 2016-08-31 10:23:44 UTC
I think the bug's reason is serviceacount changed to jenkins,will verified it later

Comment 6 Gabe Montero 2016-08-31 14:13:44 UTC
@wewang - if you do still see problems after accounting for the change in service account, please include the latest stack trace and confirm the plugin version, as they should be different from what you posted in the original description.

Comment 7 wewang 2016-09-01 03:13:58 UTC
when use serviceaccount:jenkins , it  works

Comment 9 errata-xmlrpc 2016-09-27 09:10:33 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