Bug 1311435 - [devexp_public_844]Cannot implement post-build command when adding Command to bc and build
Summary: [devexp_public_844]Cannot implement post-build command when adding Command t...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: Build
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Cesar Wong
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On: 1311426
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-24 09:19 UTC by wewang
Modified: 2016-02-24 09:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1311426
Environment:
Last Closed: 2016-02-24 09:33:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description wewang 2016-02-24 09:19:26 UTC
+++ This bug was initially created as a clone of Bug #1311426 +++

Version-Release number of selected component (if applicable):
openshift v1.1.3-228-ge8dd2a2
kubernetes v1.2.0-alpha.7-703-gbc4550d
etcd 2.2.5

Description of problem:
Cannot implement post-build command when adding Command  to bc and build

Steps to Reproduce:
1. Login to openshift and create project 
2. Create app
   $oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json
3.  Add Command  to bc and build
                 "postCommit": {
                    "command": [
                        "bundle",
                        "exec",
                        "rake",
                        "test",
                        "--verbose"
                    ]
                }


   $oc start-build <bc>
4. Check the log 
   

Actual results:
4. I0224 09:06:43.877799       1 common.go:134] Running post commit hook with image wewang/ruby-sample-build-10:59791539 ...
F0224 09:06:44.568459       1 builder.go:204] Error: build error: start container "openshift_s2i-build_ruby-sample-build-10_wewang_post-commit": API error (404): Cannot start container 62f8bad2d5b107a80b81396de4d4005b3e3e9ed515f71eb1071b8c7b4b9b7c96: [8] System error: exec: "bundle": executable file not found in $PATH

total logs:http://pastebin.test.redhat.com/351317

Expected results:

Can implement Command   and image push to registry

Comment 1 wewang 2016-02-24 09:33:38 UTC
similar problem with bug #1311426, so close it


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