Skip to content

Commit d26ffa7

Browse files
author
Patrick Wolf
committed
Added new directory structure for simple examples and more complex Jenkinsfile examples; added README.md file for each directory to highlight purpose of directory; added new complete jenkinsfile example based on example from Reference card; rewrote all simple examples from test cases in pipeline model plugin; eliminated some superfluous test cases
1 parent 0498c3d commit d26ffa7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+718
-1311
lines changed

declarative-examples/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Declarartive Examples
2+
3+
This folder is a home for snippets, tips and tricks and examples for writing Declarative Pipelines with the
4+
[Jenkins Pipeline plugin](https://github.com/jenkinsci/workflow-plugin/blob/master/README.md).
5+
6+
# Layout
7+
8+
The repository is broken up into four directories currently:
9+
10+
* *simple-examples* - simple pipelines with one or two stages that illustrate or test a single part of Declarative Pipeline
11+
* *jenkinsfile-examples* - for examples of using `Jenkinsfile`s checked into repositories.
12+
13+
14+
Please put your script into its own directory under the appropriate directory above, with a README.md file included explaining what your script does or shows. Make sure your script is commented so that others can understand how it works, why it works, etc.
15+
16+
# License
17+
18+
All contributions are under the MIT license, like Jenkins itself.
19+
20+
# Pull requests
21+
22+
We want them!
23+
24+
# External resources
25+
26+
* [Pipeline scripts collection of the Docker team](https://github.com/docker/jenkins-pipeline-scripts)
27+
* [Pipeline scripts collection of the Fabric8 team](https://github.com/fabric8io/jenkins-pipeline-library)
28+
* [Pipeline scripts collection of the Funkwerk](https://github.com/funkwerk/jenkins-workflow)

declarative-examples/booleanParamBuildStep.groovy

Lines changed: 0 additions & 46 deletions
This file was deleted.

declarative-examples/buildConditionOrdering.groovy

Lines changed: 0 additions & 48 deletions
This file was deleted.

declarative-examples/buildPluginParentPOM.groovy

Lines changed: 0 additions & 29 deletions
This file was deleted.

declarative-examples/credentials/mixedEnv.groovy

Lines changed: 0 additions & 50 deletions
This file was deleted.

declarative-examples/credentials/usernamePassword.groovy

Lines changed: 0 additions & 50 deletions
This file was deleted.

declarative-examples/dockerGlobalVariableInScript.groovy

Lines changed: 0 additions & 40 deletions
This file was deleted.

declarative-examples/environmentInStage.groovy

Lines changed: 0 additions & 47 deletions
This file was deleted.

declarative-examples/executionModelAction.groovy

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)