Thursday 16 September 2021

Top 10 Jenkins Interview Question for SDET - DevOps - Automation QA?

 



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?

    agent any
        stages {
            stage ('Build') {
                steps {
                    echo
                    'Running build phase. '
                }
            }
        }
    }

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?

agent any
    stages {
        stage ('Build') {
        }
        stage ('Test') {
        
        }
        stage ('Deploy') {
        
        }
     

    }   

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.



Step 4: We need to set up a test build, which can be quickly done by the Jenkins UI by clicking Build Now.



Step 5: We can see a new build generating under the build history as we click on Build Now. The console logs output can be viewed by clicking on the Build.

10. How to create parameterized job in Jenkins? VERY IMP

  • Interview questions for SDET/Automation Testing:
  • Top 21 GIT interview questions
  • Top 30 Selenium Webdriver Interview Q&A 
  • Top 20 API Testing Interview Q&ASelenium Interview Question SET-4 
  • Selenium Interview Question SET-1
  • Selenium Interview Question SET-2
  • Selenium Interview Questions SET-3
  • Selenium Interview Question SET-4
  •   
           Check GIT commands for Interview preparation SET-1:

    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-API

    SeleniumWebdriver 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

    All Time Popular Posts

    Most Featured Post

    Jenkins Interview Q&A for Automation & SDET 2024

      How to send email notification with groovy script in Jenkins pipeline? Pipeline Script Fundamentals 💚 Jenkins Interview Q&A for Autom...