Giter Site home page Giter Site logo

ssl-certificates-monitor-jenkins-pipeline's Introduction

Jenkins declarative pipeline to run the SSL Certificates Expiry Date Monitoring Tool

The pipeline script is in charge of executing the Bash script, to identify the expiring certificates, as well as generating the reports and firing the email alerts. The corresponding Jenkins job is parameterized, as following:

Parameter Name Description
JOB_NAME Arbitrary name that will be used as the subject for the job build notification email.
JOB_GIT_REPOSITORY Git repository of the monitoring tool project
JOB_GIT_BRANCH Git branch that will be used to checkout the codebase from GitLab
JOB_EMAIL_RECIPIENTS The recipients list that will receive the alert emails containing the details of the certificates that are due to expire.
JOB_BUILD_EMAIL_RECIPIENTS The recipients that will receive the email of the Jenkins build, in case of failures
REPORT_FREQUENCY Frequency, in days, of the aggregated report
GREEN_REPORT Frequency, in days, of the first alert, when certificates are due to expire
ORANGE_REPORT Frequency, in days, of the second alert, when certificates are due to expire
RED_REPORT Frequency, in days, of the third alert, currently this is setup to run in the day when a certificate is due to expire.

This pipeline has introduced a number of new concepts such as the usage of Map objects as well as the search and replace manipulation of the html report template files with values extracted from the SSL certificate details. The pipeline stages are executed as following:

The "Config Report Date Parameter" stage will either create or modify a datestamp variable that will be used as the start date to calculate and decide whether the "Build Aggregated Report" stage will run or not. The aggregated report frequency is parameterized as well.

The following snapshot shows a practical example of how the parameters must be set for the job, in Jenkins.

ssl-certificates-monitor-jenkins-pipeline's People

Contributors

graadi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.