meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sw:jenkins [2018/11/08 07:24] – niziak | sw:jenkins [2019/02/19 14:29] – ' niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Pipeline | ====== Pipeline | ||
- | * is main Jenkins plugin which act as main build engine | + | * is main Jenkins plugin which act as main build engine |
* **replay** feature let to run job with modified by hand '' | * **replay** feature let to run job with modified by hand '' | ||
+ | | ||
- | ===== Jenkinsfile | + | ===== Scripted pipeline |
It is possible to write Jenkinsfile' | It is possible to write Jenkinsfile' | ||
- | **Scripted | + | [[https:// |
+ | [[https:// | ||
+ | [[https:// | ||
<file | jenkinsfile> | <file | jenkinsfile> | ||
node { | node { | ||
+ | stage(" | ||
+ | } | ||
+ | stage(" | ||
+ | } | ||
+ | stage(" | ||
+ | parallel ( | ||
+ | ' | ||
+ | ' | ||
+ | ) | ||
+ | } | ||
+ | stage(" | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | } | ||
+ | } | ||
</ | </ | ||
- | https://jenkins.io/doc/ | + | NOTE: |
+ | * **parallel** expect map as argument. [[https://www.cloudbees.com/blog/parallelism-and-distributed-builds-jenkins]] | ||
+ | * | ||
- | **Declarative Pipeline** | + | |
+ | |||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | ==== archiveArtifacts ==== | ||
+ | |||
+ | **archiveArtifacts: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | <file groovy> | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | </ | ||
+ | |||
+ | ===== Declarative Pipeline==== | ||
<file | Jenkinsfile> | <file | Jenkinsfile> | ||
pipeline { | pipeline { | ||
Line 28: | Line 72: | ||
//You may also declare whether scripts need to explicitly request that library (detailed below), or if it is present by default. Furthermore, | //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:// | [[https:// | ||
+ | [[https:// | ||
+ | |||