This document discusses Jenkins 2.0 and its new "pipeline as code" feature. Pipeline as code allows automation of continuous delivery pipelines by describing the stages in a textual pipeline script stored in version control. This enables pipelines to be more flexible, reusable and survive Jenkins restarts. The document provides examples of pipeline scripts for common tasks like building, testing, archiving artifacts and running in parallel. It also discusses how pipelines can be made more reusable by defining shared library methods.