Jenkins Declarative Pipeline - chaitanyavangalapudi/devops-scripts GitHub Wiki

In this post, we are not going to discuss about Installation and basic setup of Jenkins like initial admin setup, plugins installation etc since there are plenty of blogs and posts about these topics. We will discuss about various issues encountered while configuring jenkins, building declarative pipeline.

We will discuss

  • What is Jenkins Declarative pipeline, its advantages compared to scripted pipeline
  • Various components of Declarative pipeline like agent, stages, steps, scripts
  • Configure Jenkins & GitLab for automatic build triggers using Webhooks
  • Jenkins pipeline to run build commands using maven and gradle
  • Parallel steps in Jenkins declarative pipelines
  • Stash and Unstash functionality
  • Configure Jenkins & Nexus for automatically publishing artifacts
  • Publishing JUnit HTML reports
  • Email notifications using Extended Email Plugin
  • Pipeline script generator
  • Build docker images and deploy using Jenkins pipeline
  • Sample pipeline for Spring Boot application
  • Sample pipeline for Angular application

References: