Pipelines (Contd..)
- Conditional Execution:
- Scripted Pipeline: Refer Here
- Declarative Pipeline:
- In the case of declarative pipeline for conditional execution when is used Refer Here
- For the changeset refer here

- Post:
- Refer Here for documentation
- For Sending elaborabate emails refer emailext
- Refer Here for changes in Declarative Jenkinsfile
- For Scripted pipeline usage Refer Here
- Jenkins Stash and unstash:
- In Jenkins DSL, the stash and unstash functions allow for saving and retieving the files b/w nodes or stages in a pipeline
- Offical documentation of Stash and unstash
- Try writing a declarative pipeline to build the gameoflife package in node1 and deploying the war file in node 2 (ansible,docker,k8s)
- hint:
- stash name: ‘golwar’, includes: ‘gameoflife-web/target/*.war’
- unstash name: ‘golwar’

- hint:
- Declarative Pipeline Syntax:
- Jenkins Project Types
- FreeStyle
- Pipeline
- Maven
- Multi-Configuration Project
- Folder
- GitHub Organization
- Multibranch Pipeline
- Jenkins Blue Ocean: Explore Jenkins by installing plugins as mentioned over here
