Description of problem: Using the ‘stage’ step without a block argument is deprecated, if we still define stage without a block argument it will introduce unexpected result as bug 1410680, so it's better to update Jenkinsfile Examples with new definition Version-Release number of selected component (if applicable): v3.5.0.6+87f6173 Jenkins Image:openshift3/jenkins-2-rhel7@sha256:53fc8af74d667b54f52e76976a93f17666ed03d5564e88a509072bd971ae6399 How reproducible: Always Steps to Reproduce: 1.Create Jenkins template and Pipeline BC, start Pipeline BC $ oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/jenkins-ephemeral-template.json $ oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/samplepipeline.yaml $ oc start-build sample-pipeline 2.Go to Pipelines -> sample-pipeline -> Configuration tab 3.Click on What's a Jenkinsfile? Actual results: 3. Will show some Jenkinsfile Examples in popup, take one as example: node { stage 'Build' openshiftBuild(buildConfig: 'my-build-config', showBuildLogs: 'true') stage 'Deploy' openshiftDeploy(deploymentConfig: 'my-deployment-config') } Expected results: 3.As bug 1410680 issued, stage definition in Jenkinsfile has changed, using the ‘stage’ step without a block argument is deprecated, it's better to update Jenkinsfile Examples as latest definition. Especially for users who don't know how to define stage, we need to give correct instructions Additional info:
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/e7999440329af861fb306be660d4fbb64bf26305 Bug 1414661 - Use block syntax for stages in examples Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1414661
This has been merged into ocp and is in OCP v3.5.0.10 or newer.
Checked against v3.5.0.14+20b49d0 Now the Jenkinsfile Examples are displayed with latest format(stage is defined in block argument): node { stage('Build') { openshiftBuild(buildConfig: 'my-build-config', showBuildLogs: 'true') } stage('Deploy') { openshiftDeploy(deploymentConfig: 'my-deployment-config') } } Move to VERIFIED