Bug 1372170

Summary: [dev-preview-int] JenkinsPipeline strategy is not allowed in online env
Product: OpenShift Online Reporter: Dongbo Yan <dyan>
Component: BuildAssignee: Mike Dame <mdame>
Status: CLOSED CURRENTRELEASE QA Contact: Wang Haoran <haowang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: abhgupta, aos-bugs, bingli, bparees, cewong, pweil, vdinh, xxia
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-16 22:12:50 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:

Description Dongbo Yan 2016-09-01 06:07:40 UTC
Description of problem:
JenkinsPipeline strategy is not allowed in online env

Version-Release number of selected component (if applicable):
dev-preview-int
OpenShift Master: v3.3.0.26+74ac228-dirty
Kubernetes Master: v1.3.0+507d3a7

How reproducible:
Always

Steps to Reproduce:
1.Create a project, create a JenkinsPipeline strategy build
 $ oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/samplepipeline.json
2.
3.

Actual results:
--> Creating resources with label app=jenkins-pipeline-example ...
    error: buildconfigs "sample-pipeline" is forbidden: build strategy JenkinsPipeline is not allowed
    service "frontend" created
    route "frontend" created
    imagestream "origin-ruby-sample" created
    buildconfig "ruby-sample-build" created
    deploymentconfig "frontend" created
    service "database" created
    deploymentconfig "database" created
--> Failed

Expected results:
Could create jenkinspipeline strategy build successfully

Additional info:

Comment 1 Cesar Wong 2016-09-01 13:05:59 UTC
This is working as designed.

By default, pipeline builds are not allowed in the current version of OpenShift online. However, it should be enabled when we upgrade to v3.3.

Comment 2 Dongbo Yan 2016-09-02 02:15:40 UTC
We already have upgraded to v3.3.0.28 in dev-preview-int

Comment 3 Bing Li 2016-09-02 07:36:46 UTC
@Vu Dinh,
Don't know if you are the right person for this, but do you or someone else know if JenkinsPipeline strategy should be enabled or not in online 3.3? thanks!

Comment 4 Vu Dinh 2016-09-02 07:39:50 UTC
Hi Bing,

This question is better suit for Ben Parees.

Thanks,
Vu

Comment 5 Ben Parees 2016-09-02 11:53:29 UTC
Since the online ops registry is using the latest jenkins image from pulp, we can go ahead and enable pipeline strategy builds in any online environment that is at 3.3 and above.

Comment 6 Dongbo Yan 2016-09-29 07:21:09 UTC
Pipeline build strategy is also NOT allowed in dev-preview-stg

Comment 7 Wang Haoran 2016-09-30 06:55:00 UTC
Hi, Vu Dinh, as Ben said , we should enable the pipeline strategy on online env, how do you think ?

Comment 8 Vu Dinh 2016-09-30 13:05:58 UTC
We are still in progress to enable this feature on Online cluster. Will keep you posted :).

Thanks,
Vu

Comment 9 Mike Dame 2016-10-28 17:54:58 UTC
PR: https://github.com/openshift/online/pull/572
Release ticket for Online: https://github.com/openshift/online/issues/573

Comment 10 Abhishek Gupta 2016-11-23 18:26:31 UTC
This is now configured in devpreview INT

Comment 11 Bing Li 2016-11-24 05:03:47 UTC
JenkinsPipeline build can be successfully triggered in INT:

$ oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/samplepipeline.json

$ oc start-build sample-pipeline
build "sample-pipeline-1" started

$ oc get pod
NAME                             READY     STATUS      RESTARTS   AGE
jenkins-1-m4rlk                  1/1       Running     0          7m
mongodb-1-kmtoj                  1/1       Running     0          7m
nodejs-mongodb-example-1-build   0/1       Completed   0          2m
nodejs-mongodb-example-1-t1k8u   1/1       Running     0          50s

$ oc get build
NAME                       TYPE              FROM          STATUS     STARTED         DURATION
nodejs-mongodb-example-1   Source            Git@fb4415c   Complete   3 minutes ago   1m19s
sample-pipeline-1          JenkinsPipeline                 Complete   6 minutes ago   4m34s

Move to verified.