Hide Forgot
Description of problem: When JenkinsPipeline build in New status, should not display its stages info Version-Release number of selected component (if applicable): openshift v1.3.0-alpha.3+4250e53 kubernetes v1.3.0+507d3a7 etcd 2.3.0+git 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 finished, click the Rebuild button on browse/pipeline/sample-pipeline/sample-pipeline-1 page 4. Check browse/pipeline/sample-pipeline page about all builds Actual results: 4. When build sample-pipeline-2 is started and still in New status, stages state is displayed right away. And its stages' durations are same as previous pipeline build. But after sample-pipeline-2 is finished, its stages' durations then become updated. Expected results: 4. When build is in New status, should not display any state info Additional info:
Created attachment 1195244 [details] BuildinNewStatus
The API should strip jenkins status annotations instead of copying them when a build is cloned (Rebuild). Since the feature is in tech preview I'm marking as UpcomingRelease.
@jessica what's the name of the annotation in question?
openshift.io/jenkins-status-json is the one causing the problem, but we should probably not be copying these either: openshift.io/jenkins-log-url openshift.io/jenkins-build-uri in hindsight these annotations probably should have been namespaced with build.openshift.io or jenkins.openshift.io they also aren't even consistent with each other for using uri vs url ...
https://github.com/openshift/origin/pull/11052
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/0311df5bacf8e80608d75f8474ec93eec943c596 fix bug 1371047 When JenkinsPipeline build in New status, should not display its stages info
Checked against openshift v1.4.0-alpha.0+b1ed662 with steps in "Steps to Reproduce" When JenkinsPipeline build in New status, it will show message "No stages have started." on BC and Builds page, stage info will ONLY be displayed when corresponding stage started