How to send email notification with groovy script in Jenkins pipeline?
Pipeline Script Fundamentals
Click Here : DevOps Related Posts
1. What is Jenkins?
According to definition in Jenkins docs: "Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software."
We use it to create jobs or tasks which will help us to achieve CI and CD in our project.
The best thing : it is "FREE FREE FREE :)
2. How to install Jenkins?
ANS: Click Here For Steps (with screenshots)
3. Can you write a pipeline script having steps called in stage?
4. What is Pipeline, Node and Stage in Jenkins?
ANS: Click Here for All Pipeline Concepts and Terminology
5. Can you write a pipeline script haveing multiple stages in it?
6. How to send email notification in Jenkins using groovy script? VERY IMP
ANS: Click Here For Answer with Groovy Script Steps
7. Can you write a pipeline script where you can call your Maven with automation suite?
node { | |
stage ('SCM checkout'){ | |
git "https://gitlab.com/mbabilo/experitest" | |
} | |
stage ('Build'){ | |
dir("comtest") { | |
sh "mvn clean install" | |
} | |
dir("comtest/target") { | |
sh "java -jar com.test-1.0-SNAPSHOT.jar" | |
} | |
} | |
} |
8. How to schedule a job in Jenkins? How to set nightly Automation Job?
ANS: Click Here For Schedule Job
9. How to create a pipeline script in Jenkins UI?
Step 1: We create a New Project for the Pipeline by navigating to Jenkins and then click on New Item.
Step 2: Next, we select Pipeline from the given list of options.
Step 3: Then, we will scroll down to Advanced Project Options and paste the pipeline script code that we saw above into the code pane and hit the Save button.
GIT Interview Question 1 to 11
Check GIT commands for Interview preparation SET-2:
GIT Interview Question 12 to 21
Check GIT commands for Interview preparation SET-3:
GIT Interview Question 21 to 30
API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-APISeleniumWebdriver Automation Testing Interview Questions:
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign
Java Related Interview Question Set
https://automationreinvented.blogspot.com/search/label/Java
GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT
Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions
No comments:
Post a Comment