DevOps Classroom Series – 18/Feb/2021

Configuring Email Notifications in Jenkins

  • Lets use the fake smtp server configuration Refer Here
  • Login into mail trap using ur existing google id
  • Now Navigate Jenkins => Manage Jenkins => Configure System => Email notification and send the test email after configuration
  • Configure Extended Email Notification
  • Navigate to Manage Jenkins => Configure System => Extended Email notification
  • Now configure the Editable email notification in the Job

Jenkins Environment variables and Jenkins Build Parameters

  • Create a new free style project and navigate to build section and select Execute shell and now click on list environmental variables in a new tab
  • create a job with set command in execute shell
  • Now lets add one more build step of execute shell and create some functionality
    • copy the logs of jenkins into /tmp
    • To use environmental variables we will be using the syntax of $ENV in linux
    • In the case of Windows environmental variables are used with syntax %ENV%
  • In addition to Environmental variables defined by jenkins system, we can create jenkins build parameters
  • To invoke jenkins job with parameters as a downstream job we need a parametrized trigger plugin. After that in jenkins ui we see the functionality

Next Steps

  • Jenkins 2 Features
    • Scripted Pipeline
    • Declarative Pipeline
  • Artifactory Server
  • Sonar Qube Server

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company
Exit mobile version
%%footer%%