jenkins.io
jenkins.io copied to clipboard
Pipeline samples are outdated demonstrating unsupported examples
trafficstars
Problem with this page
Pipeline Examples page source file
Expected behavior
https://www.jenkins.io/doc/pipeline/examples/ contains up-to-date, copy/paste ready examples to use in pipelines.
Actual behavior
Many samples are outdated and can't be used on supported Jenkins versions, due to syntax changes and security hardening.
E.g. https://github.com/jenkinsci/pipeline-examples/blob/master/jenkinsfile-examples/msbuild/Jenkinsfile; standalone stage is deprecated in favor of stage('abc')...
Possible solution
The page content is generated based on the samples in https://github.com/jenkinsci/pipeline-examples.
Updating the samples in https://github.com/jenkinsci/pipeline-examples restores functionality of the examples on jenkins.io.