title: Jenkins pipeline from YAML file
body: <p>Jenkins declarative pipeline is too powerful for us, often users can abuse it. We are thinking to use an opinionated YAML to describe CI/CD pipeline. And it seems there are two choices. </p>
  
  <ol>
  <li>Write a plugin and consume YAML and dynamically create stage / steps.</li>
  <li>Write a plugin to convert a YAML to Jenkins pipeline. </li>
  </ol>
  
  <p>I am not expert on Jenkins, so I hope some expert can give some guidance and maybe an example.  </p>