jenkins.io icon indicating copy to clipboard operation
jenkins.io copied to clipboard

Pipeline samples are outdated demonstrating unsupported examples

Open NotMyFault opened this issue 2 years ago • 0 comments
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.

NotMyFault avatar Aug 12 '23 15:08 NotMyFault