meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
sw:jenkins [2018/11/07 14:44] – created niziaksw:jenkins [2018/11/08 07:24] niziak
Line 1: Line 1:
- 
- 
  
 ====== Pipeline  ====== ====== Pipeline  ======
 +  * is main Jenkins plugin which act as main build engine
   * **replay** feature let to run job with modified by hand ''Jenkinsfile''   * **replay** feature let to run job with modified by hand ''Jenkinsfile''
  
-====== Jenkinsfile =====+===== Jenkinsfile ==== 
 + 
 +It is possible to write Jenkinsfile's as Groovy scripts (advanced) or using Declarative Pipeline Syntax. 
 **Scripted pipeline** https://jenkins.io/doc/book/pipeline/syntax/#scripted-pipeline **Scripted pipeline** https://jenkins.io/doc/book/pipeline/syntax/#scripted-pipeline
 <file | jenkinsfile> <file | jenkinsfile>
 node { node {
 </file> </file>
 +
 +https://jenkins.io/doc/pipeline/examples/
 +
  
 **Declarative Pipeline** **Declarative Pipeline**
Line 17: Line 22:
 } }
 </file> </file>
 +
 +
 +===== Global Pipeline Libraries =====
 +
 +//You may also declare whether scripts need to explicitly request that library (detailed below), or if it is present by default. Furthermore, if you specify a version in Jenkins configuration, you can block scripts from selecting a different version.//
 +
 +[[https://jenkins.io/blog/2017/10/02/pipeline-templates-with-shared-libraries/]]
 +
 +[[https://jenkins.io/doc/book/pipeline/shared-libraries/|Extending with Shared Libraries]]
 +
 +
  
 ====== Workspace ====== ====== Workspace ======