Bug 1029174 - Jenkins Build Failures occur when you delete an application and recreate it.
Summary: Jenkins Build Failures occur when you delete an application and recreate it.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Timothy Williams
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1040125
TreeView+ depends on / blocked
 
Reported: 2013-11-11 20:40 UTC by Eric Rich
Modified: 2018-12-04 16:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1040125 (view as bug list)
Environment:
Last Closed: 2016-04-18 19:14:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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