Bug 1370079

Summary: Jenkinsfile content is empty and Rebuild button is disabled for Jenkins Pipeline builds
Product: OKD Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, mmccomas
Target Milestone: ---   
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: 2016-09-19 13:51:12 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:
Attachments:
Description Flags
EmptyJenkinsfile none

Description Yadan Pei 2016-08-25 09:13:53 UTC
Description of problem:
Jenkinsfile content is empty and Rebuild button is disabled for Jenkins Pipeline builds 

Version-Release number of selected component (if applicable):
v3.3.0.25

How reproducible:
Always

Steps to Reproduce:
1. Preparation
$ oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/image-streams/image-streams-centos7.json -n openshift
$ oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/jenkins-ephemeral-template.json
2. Create jenkinsPipeLine bc and start build
$ oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/samplepipeline.json
$ oc new-app jenkins-ephemeral
$ oc start-build sample-pipeline 
3. When build sample-pipeline-1 is started, check its configuration on browse/pipeline/sample-pipeline/sample-pipeline-1 page
4. When build sample-pipeline-1 is finished, check again on browse/pipeline/sample-pipeline/sample-pipeline-1 page

Actual results:
3. In Configuration part, title 'Jenkinsfile' is listed but its empty(refer to attachment)
4. Rebuild button is disabled


Expected results:
3. For build sample-pipeline-1, should populate 'Jenkinsfile' with the same content for BC 'sample-pipeline' like attachment "snapshot2" shows in https://bugzilla.redhat.com/show_bug.cgi?id=1357752
4. Rebuild should be enabled 

Additional info:

Comment 1 Yadan Pei 2016-08-25 09:14:25 UTC
Created attachment 1193931 [details]
EmptyJenkinsfile

Comment 2 Jessica Forrester 2016-08-25 13:40:03 UTC
web console PR https://github.com/openshift/origin-web-console/pull/479

Comment 3 Jessica Forrester 2016-08-25 19:22:49 UTC
merging to origin in https://github.com/openshift/origin/pull/10650

Comment 4 Yadan Pei 2016-08-26 05:30:25 UTC
Will check when PR is merged

Comment 5 Yadan Pei 2016-08-29 03:10:50 UTC
Checked against devenv-rhel7_4943:

openshift v1.3.0-alpha.3+4250e53
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git


Now for  build sample-pipeline-1, Jenkinsfile is populated correctly, and Rebuild button is enabled when sample-pipeline-1 finished

Move to VERIFIED