This repository is a curated collection of Jenkins pipeline scripts designed to automate various stages of the software development lifecycle, including build, test, and deployment processes.:contentReference[oaicite:0]{index=0}
- README.md
- script-1-basic-hello-world.txt
- script-2-multiple-stages.txt
- script-3-on-a-label.txt
- script-4-parallel-stages.txt
- script-5-seq+parallel.txt
- script-6-execute-job.txt
- script-7-node.txt
- script-8-multiplestages.txt
- script9-multiple-agents--withnode.txt
- script10-withlabel.txt
- script-11-params.txt
- script-12-multi-wsp-multistep.txt
- script-13-multinode.txt
- multi-stage-29ex.txt
To utilize these pipeline scripts:
-
Clone the Repository
git clone https://github.com/mukund-p/Jenkins_Pipeline.git cd Jenkins_Pipeline -
Set Up Jenkins
- Ensure Jenkins is installed and running.
- Install necessary plugins, such as:
- Pipeline
- Git
- GitHub Integration (if using GitHub repositories)
- Create a New Pipeline Job
- In Jenkins, navigate to
New Item. - Enter a name for your job and select
Pipeline. - Under the
Pipelinesection, choosePipeline scriptand paste the contents of the desired.txtfile from this repository.
- Run the Pipeline
- Save the job configuration.
- Click
Build Nowto execute the pipeline.
- These scripts are written in Jenkins Declarative Pipeline syntax.
- Modify the scripts as needed to fit your specific environment and requirements.
- Ensure that any referenced agents, labels, or external jobs exist in your Jenkins setup.