Bug 1007804

Summary: [deploy][origin_runtime_215] Jenkins build will fail at the second time
Product: OpenShift Online Reporter: Qiushui Zhang <qiuzhang>
Component: ContainersAssignee: Paul Morie <pmorie>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-17 13:28:44 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:

Description Qiushui Zhang 2013-09-13 11:02:01 UTC
Description of problem:
Jenkins build will fail from the second time. It only can pass for the first time.

Version-Release number of selected component (if applicable):
fork_ami_deploy_813

How reproducible:
always

Steps to Reproduce:
1. Launch an instance of fork_ami_deploy_813
2. Create an app with jenkins
e.g. rhc app create ews2 jbossews-2.0 --enable-jenkins
3. Add force_clean_build marker. Make some changes in local repo
4. Git push the changes.
5. Make some changes in the local repo again.
6. Git push the changes again.

Actual results:
Jenkins build will fail

Expected results:
Jenkins build is successful.

Additional info:
Failure output:
Writing objects: 100% (2/2), 237 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Executing Jenkins build.
remote: 
remote: You can track your build at https://jenkins-qiuzhang.dev.rhcloud.com/job/ews1-build
remote: 
remote: Waiting for build to schedule....Done
remote: Waiting for job to complete......Done
remote: FAILED
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running.  Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: Failed to execute: 'control post-receive' for /var/lib/openshift/5232ed46a9f946e693000070/jenkins-client
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://5232ed46a9f946e693000070.rhcloud.com/~/git/ews1.git/
   b24d8e9..a4cf37c  master -> master

Comment 3 Qiushui Zhang 2013-09-30 02:56:36 UTC
I've checked with most cartridge. The jenkins build may fail at the first.

Comment 4 Qiushui Zhang 2013-10-11 10:06:03 UTC
Tested on devenv_3886.

Jenkins build can finish successfully.

Mark the bug as verified.