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

Bug 1029174

Summary: Jenkins Build Failures occur when you delete an application and recreate it.
Product: OpenShift Container Platform Reporter: Eric Rich <erich>
Component: ImageStreamsAssignee: Timothy Williams <tiwillia>
Status: CLOSED DEFERRED QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.0.0CC: bleanhar, szasz_katalin, tiwillia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1040125 (view as bug list) Environment:
Last Closed: 2016-04-18 19:14:05 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: 1040125    

Description Eric Rich 2013-11-11 20:40:55 UTC
Description of problem:

When I delete my application and recreate it with the same name, my Jenkins server can not build the application. 


Steps to Reproduce:
1. Create Jenkins server
2. Create Application ; Build application
3. Delete Application ; Build application

Additional info:

This seems to happen because Jenkins is not cleaned up, IE: the jenkins server is not made aware the the build was deleted.

Comment 2 Jason DeTiberus 2013-11-12 19:33:25 UTC
The issue is a bit stickier than this.  Basically, when the app is deleted the build is set to disabled (I believe this was a deliberate design decision).  

When the new app is created the jenkins job is re-enabled, but is not fully wired up correctly and the jenkins jobs fail to do a git pull on the application repository.

The workaround in the meantime would be to make sure to delete the jenkins job before re-creating a new application with the same name as a deleted application.

Comment 3 Jason DeTiberus 2013-11-12 19:33:53 UTC
Also, this issue affects 2.0 as well as 1.2

Comment 4 Katalin 2014-04-21 07:57:01 UTC
I have the same issue. How can I delete the jenkins job before re-creating a new application?

Thanks!

Comment 5 Brenton Leanhardt 2014-04-21 12:13:49 UTC
Katalin, try logging in to the Jenkins web application and deleting the job manually.  If you log in to your main gear you should be able to run 'env | grep JENKINS' to see the login details.

Comment 6 Eric Rich 2016-04-18 19:14:05 UTC
Workaround here is to delete your buildjob when you delete your application.