meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sw:jenkins [2019/02/19 13:46] – niziak | sw:jenkins [2021/03/31 20:38] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Jenkins ====== | ||
====== Pipeline | ====== Pipeline | ||
Line 9: | Line 10: | ||
It is possible to write Jenkinsfile' | It is possible to write Jenkinsfile' | ||
- | **** https:// | + | [[https:// |
+ | [[https:// | ||
+ | [[https:// | ||
<file | jenkinsfile> | <file | jenkinsfile> | ||
node { | node { | ||
+ | stage(" | ||
+ | } | ||
+ | stage(" | ||
+ | } | ||
+ | stage(" | ||
+ | parallel ( | ||
+ | ' | ||
+ | ' | ||
+ | ) | ||
+ | } | ||
+ | stage(" | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | } | ||
} | } | ||
</ | </ | ||
+ | |||
+ | NOTE: | ||
+ | * **parallel** expect map as argument. [[https:// | ||
+ | * | ||
+ | |||
+ | |||
+ | |||
[[https:// | [[https:// | ||
Line 19: | Line 44: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | |||
+ | ==== archiveArtifacts ==== | ||
+ | |||
+ | **archiveArtifacts: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | <file groovy> | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | archiveArtifacts artifacts: ' | ||
+ | </ | ||
===== Declarative Pipeline==== | ===== Declarative Pipeline==== | ||
Line 25: | Line 65: | ||
pipeline { | pipeline { | ||
agent any | agent any | ||
+ | stages { | ||
+ | stage(' | ||
+ | steps { | ||
+ | sh 'make config' | ||
+ | sh 'echo " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | post { | ||
+ | always { | ||
+ | archiveArtifacts artifacts: ' | ||
+ | } | ||
+ | } | ||
} | } | ||
</ | </ |