meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| sw:jenkins [2018/11/07 14:44] – created niziak | sw:jenkins [2021/03/31 20:38] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | + | ====== Jenkins ====== | |
| ====== Pipeline | ====== Pipeline | ||
| + | * is main Jenkins plugin which act as main build engine (from Jenkins 2.0) | ||
| * **replay** feature let to run job with modified by hand '' | * **replay** feature let to run job with modified by hand '' | ||
| + | | ||
| + | |||
| + | ===== Scripted pipeline ==== | ||
| + | |||
| + | It is possible to write Jenkinsfile' | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| - | ====== Jenkinsfile ===== | ||
| - | **Scripted pipeline** https:// | ||
| <file | jenkinsfile> | <file | jenkinsfile> | ||
| node { | node { | ||
| + | stage(" | ||
| + | } | ||
| + | stage(" | ||
| + | } | ||
| + | stage(" | ||
| + | parallel ( | ||
| + | ' | ||
| + | ' | ||
| + | ) | ||
| + | } | ||
| + | stage(" | ||
| + | archiveArtifacts artifacts: ' | ||
| + | archiveArtifacts artifacts: ' | ||
| + | } | ||
| + | } | ||
| </ | </ | ||
| - | **Declarative | + | NOTE: |
| + | | ||
| + | * | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | ==== archiveArtifacts ==== | ||
| + | |||
| + | **archiveArtifacts: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | <file groovy> | ||
| + | archiveArtifacts artifacts: ' | ||
| + | archiveArtifacts artifacts: ' | ||
| + | archiveArtifacts artifacts: ' | ||
| + | archiveArtifacts artifacts: ' | ||
| + | </ | ||
| + | |||
| + | ===== Declarative Pipeline==== | ||
| <file | Jenkinsfile> | <file | Jenkinsfile> | ||
| pipeline { | pipeline { | ||
| agent any | agent any | ||
| + | stages { | ||
| + | stage(' | ||
| + | steps { | ||
| + | sh 'make config' | ||
| + | sh 'echo " | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | post { | ||
| + | always { | ||
| + | archiveArtifacts artifacts: ' | ||
| + | } | ||
| + | } | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== 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, | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | |||
| + | |||
| ====== Workspace ====== | ====== Workspace ====== | ||