Answers: <p>The <a href="https://www.jenkins.io/blog/2018/04/25/configuring-jenkins-pipeline-with-yaml-file/" rel="nofollow noreferrer">blog post you linked to in your comment which describes using YAML to generate Pipelines</a> is about an unofficial 3rd-party Jenkins plugin which adds this feature; neither native Jenkins nor official plugins support using YAML to generate Pipelines.</p>
  <hr />
  <blockquote>
  <p>pipelines or declarative pipeline (do other type of pipelines exist in jenkins?) are defined using a syntax that is based on an extension of groovy</p>
  </blockquote>
  <p>There are two types of natively-supported Pipelines: Scripted Pipelines (which are pure Groovy scripts) and Declarative Pipelines (which use a Groovy-based DSL).</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-03-12T00:26:13.473Z
Answers: 2021-03-12T00:26:13.473Z
Answers: jayhendren
Answers: <p>In most case in jenkins yaml is not used all command are written in grove, on the fly you can create some snippets using jenkins pipeline syntax generator in order to understand better check documantation <a href="https://www.jenkins.io/doc/book/pipeline/getting-started/#snippet-generator" rel="nofollow noreferrer">https://www.jenkins.io/doc/book/pipeline/getting-started/#snippet-generator</a> it is not like in you run one command like kubectl create deployment and whole manifest is defined also you can use blue ocean editor which is much better for creating pipeline. there are some implementation of yaml pipelines but they are not widely used check this posts</p>
  <p><a href="https://plugins.jenkins.io/pipeline-as-yaml/" rel="nofollow noreferrer">https://plugins.jenkins.io/pipeline-as-yaml/</a></p>
  <p><a href="https://medium.com/wolox/dynamic-jenkins-pipelines-b04066371fbc" rel="nofollow noreferrer">https://medium.com/wolox/dynamic-jenkins-pipelines-b04066371fbc</a></p>
  
Answers: CC BY-SA 4.0
Answers: 2021-01-31T16:44:51.617Z
Answers: 2021-01-31T16:44:51.617Z
Answers: Galpha
Body: <p>Just started out working on jenkins, among other things I'm trying to understand the role of yaml in pipelines. I understand that pipelines or declarative pipeline (do other type of pipelines exist in jenkins?) are defined using a syntax that is based on an extension of groovy and that yaml can be used along with some plugins or extended library to generate an on the fly groovy-based pipeline definition. Is my understanding correct?</p>
  
Comments: CC BY-SA 4.0
Comments: 2020-06-29T13:22:55.920Z
Comments: This is an example of how yaml file can be used in jenkins to define a pipeline https://www.jenkins.io/blog/2018/04/25/configuring-jenkins-pipeline-with-yaml-file/
Comments: whatever
Tags: <jenkins><jenkins-plugins><yaml>
Title: yaml files in jenkins pipeline
UserDisplayName: whatever
ThreadText: # yaml files in jenkins pipeline
  
  (Asked by: username_0 on 2020-06-27)
  
  Just started out working on jenkins, among other things I'm trying to understand the role of yaml in pipelines. I understand that pipelines or declarative pipeline (do other type of pipelines exist in jenkins?) are defined using a syntax that is based on an extension of groovy and that yaml can be used along with some plugins or extended library to generate an on the fly groovy-based pipeline definition. Is my understanding correct?
  
  **Tags:** jenkins, jenkins-plugins, yaml
  
  > **Comments:**
  > **username_0**: This is an example of how yaml file can be used in jenkins to define a pipeline https://www.jenkins.io/blog/2018/04/25/configuring-jenkins-pipeline-with-yaml-file/  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-03-12. Score: 1
  
  The [blog post you linked to in your comment which describes using YAML to generate Pipelines](https://www.jenkins.io/blog/2018/04/25/configuring-jenkins-pipeline-with-yaml-file/) is about an unofficial 3rd-party Jenkins plugin which adds this feature; neither native Jenkins nor official plugins support using YAML to generate Pipelines.
  
  ---
  
  > pipelines or declarative pipeline (do other type of pipelines exist in jenkins?) are defined using a syntax that is based on an extension of groovy
  
  There are two types of natively-supported Pipelines: Scripted Pipelines (which are pure Groovy scripts) and Declarative Pipelines (which use a Groovy-based DSL).
  
  
  ---
  
  ### Answer by username_2 on 2021-01-31. Score: 0
  
  In most case in jenkins yaml is not used all command are written in grove, on the fly you can create some snippets using jenkins pipeline syntax generator in order to understand better check documantation <https://www.jenkins.io/doc/book/pipeline/getting-started/#snippet-generator> it is not like in you run one command like kubectl create deployment and whole manifest is defined also you can use blue ocean editor which is much better for creating pipeline. there are some implementation of yaml pipelines but they are not widely used check this posts
  
  <https://plugins.jenkins.io/pipeline-as-yaml/>
  
  <https://medium.com/wolox/dynamic-jenkins-pipelines-b04066371fbc>
  
  
  ---
  
  