21 October 2020

#Jenkins

Jenkins
What is Jenkins?
What is Maven and what is Jenkins?
Difference - Hudson and Jenkins?
What is meant by continuous integration in Jenkins?
What is build pipeline in Jenkins?
What is a Jenkins pipeline?
What is a DSL Jenkins?
What is continuous integration and deployment?
What is the tool used for provisioning and configuration?
Difference - Maven, Ant, and Jenkins?
What is a Jenkinsfile?
What is the blue ocean in Jenkins?
What are the important plugins in Jenkins?
What are Jobs in Jenkins?
What is the trustAnchors parameter must be non-empty error and how can you solve it?
What are the benefits of using Jenkins?
What are other tools like Jenkins?
What are plugins in Jenkins?
What are the ways plugins can be installed in jenkins?
What are the few useful plugins in Jenkins?
What is the requirement for using Jenkins?
What is a job in Jenkins?
What is downstream job in Jenkins?
What is upstream job in Jenkins?
What is a build process?
What are the different types of Jenkins pipeline?
What is default port in Jenkins?
What are tasks performed by Master?
What are the Characteristics of a Slave?
What is Jenkins CLI?
What is a Jenkins Workspace?
What is matrix-based security?
What are the Features of Jenkins?
What are the Important Plugins in Jenkins
What command is Used for Start Jenkins?
What are all Jenkins Supported SCM Tools
What is the Flow Control in Jenkins
What are the ways in which the build can be scheduled in Jenkins?
What are the ways Jenkins server security?
What is the Jenkins Home directory?
What is a Cron Job?
What is name of the file used for defining the Jenkins Pipeline
What are the different stages in Jenkins File?
What is Snippet Generator?
what do you mean by continuous integration?
What are the ways to restart Jenkins?
What is continuous integration?
What is the programming language used to build Jenkins?
What is Groovy in Jenkins?
What is Jenkinsfile?
What is Jenkins Pipeline? What is a CI CD pipeline?
What is Quite period in Jenkins?
What is SCM? Which SCM tools are supported in Jenkins?
What are Triggers?
What is Agent Directive in Jenkins?
What are Parameters in Jenkins?
What is Flow Control in Jenkins?
What are the basic requirements for installing Jenkins?
What is the use of Backup Plugin in Jenkins?
What is Maven? What is the benefit of integrating Maven with Jenkins?
What are the various ways in which build can be scheduled in Jenkins?
What is Kubernetes? How can you integrate Jenkins with Kubernetes?
What is the use of JENKINS HOME directory?
What is DevOps and in which stage does Jenkins fit in?
What are the types of jobs or projects in Jenkins?
What is blue ocean in Jenkins?
What is Continuous Testing?
What do you mean by Pipeline as a Code?
What are the ways to configure Jenkins node agent to communicate with Jenkins master?
What is SCM Checkout retry count?
What are stages?
What is Parallel in Jenkins?
What is a Snippet Generator?
What is Jenkins?
What is Maven and what is Jenkins?
What is meant by continuous integration in Jenkins?
What is build pipeline in Jenkins?
What is continuous integration and deployment?
What is the tool used for provisioning and configuration?
What is a Jenkinsfile?
What is the blue ocean in Jenkins?
What are Jobs in Jenkins?
What is the trustAnchors parameter must be non-empty error and how can you solve it?
What are the benefits of using Jenkins?
What are other tools like Jenkins?
What are plugins in Jenkins?
What are the ways plugins can be installed in jenkins?
What is the requirement for using Jenkins?
What is a job in Jenkins?
What is downstream job in Jenkins?
What is upstream job in Jenkins?
What is a build process?
What is default port in Jenkins?
What are tasks performed by Master?
What are the Characteristics of a Slave?
What is Jenkins CLI?
What is a Jenkins Workspace?
What is matrix-based security?
What are the Features of Jenkins?
What are the Important Plugins in Jenkins
What command is Used for Start Jenkins?
What are all Jenkins Supported SCM Tools
What is the Flow Control in Jenkins
What are the ways in which the build can be scheduled in Jenkins?
What are the ways Jenkins server security?
What is the Jenkins Home directory?
What is a Cron Job?
What is name of the file used for defining the Jenkins Pipeline
What is stage and step in Jenkins Pipeline’s file stage describes a stage of this Pipeline.
What is Snippet Generator?
what do you mean by continuous integration?
What are the ways to restart Jenkins?
What is continuous integration?
What is the programming language used to build Jenkins?
What is Groovy in Jenkins?
What is Jenkinsfile?
What is Quite period in Jenkins?
What is SCM? Which SCM tools are supported in Jenkins?
What are Triggers?
What is Agent Directive in Jenkins?
What are Parameters in Jenkins?
What is Flow Control in Jenkins?
What are the basic requirements for installing Jenkins?
What is the use of Backup Plugin in Jenkins?
What is Maven? What is the benefit of integrating Maven with Jenkins?
What are the various ways in which build can be scheduled in Jenkins?
What is Kubernetes? How can you integrate Jenkins with Kubernetes?
What is the use of JENKINS HOME directory?
What are the types of pipelines in Jenkins?
What is DevOps and in which stage does Jenkins fit in?
What are the types of jobs or projects in Jenkins?
What is blue ocean in Jenkins?
What is Continuous Testing?
What do you mean by Pipeline as a Code?
What are the ways to configure Jenkins node agent to communicate with Jenkins master?
What is SCM Checkout retry count?
What are stages?
What is Parallel in Jenkins?
What is a Snippet Generator?
How you can move or copy Jenkins from one server to another?
How you can deploy a custom build of a core plugin?
How can create a backup and copy files in Jenkins?
How you can clone a Git repository via Jenkins?
How you can set up Jenkins job?
How you can move or copy Jenkins from one server to another?
How you can deploy a custom build of a core plugin?
How can create a backup and copy files in Jenkins?
How you can clone a Git repository via Jenkins?
How you can set up Jenkins job?
Why do we use Jenkins?
Why do we use Jenkins with selenium?
Why Jenkins and Selenium?
Why do we use Nodes in jenkins?
Why do we use Nodes in jenkins?
Why do we use Jenkins?
Why do we use Jenkins with selenium?
Why do we use Pipelines in Jenkins?
Why Jenkins and Selenium?
Which SCM tools Jenkins supports?
Which CI Tools are used in Jenkin?
Which Environmental Directives are used in Jenkins?
Which SCM tools Jenkins supports?
Which Environmental Directives are used in Jenkins?
Which plugin is required to deploy a .war file into application server?
How schedule a build in Jenkins?
How do you create Multibranch Pipeline in Jenkins?
How do you create a Job in Jenkins?
How do you configuring automatic builds in Jenkins?
How to create a backup and copy files in Jenkins?
How to trigger a build remotely from Jenkins? How to configure Git post commit hook?
How Jenkins helps in CI?
How many ways plugins can be installed in Jenkins?
How do I remove a plugin from Jenkins?
How to change the running port in Jenkins?
How to change the port in Linux?
How to delete old builds automatically?
How to Configure passwordless authentication on the Jenkins?
How to install Jenkins in a local home directory with nonroot access in Linux?
How to write the shell script command to deploy or move the any builld war file to destination folder
How to configure multiple environment deployments?Using Parameters, the project can be parameterized.
How a Pipeline script can be created?
How to handle failures using Jenkins?
How to copy Jenkin’s job from one server to another server?
How to install a custom plugin in Jenkins?
How can we create a backup of Jenkins?
How you can create a new job in Jenkins?
How do you delete old builds?
How do you send the notifications whether build fails or success?
How will you define Post in Jenkins?
How can you clone a git repository via jenkins?
How does Jenkins authenticate users?
How can you use a third-party tool in Jenkins?
How can you temporarily turn off Jenkins security if the administrative users have locked themselves out of the admin console?
How can you decide the no. executors?
How to re-execute a parameterized build without entering the parameter value when the job fails?
How master system will communicate to slave system?
How do you make a job to run only on slave node?
How do you make all the jobs to be run only on slave node?
Where we install Jenkins?
Where did your plugins come from Jenkins?
Can we delete the workspace?
Can we provide a custom workspace in Jenkins?
Can we create the Jenkins build configuration as a script?
Can you start Jenkins using command line? How?
Describe Master-Slave architecture in Jenkins.
Is it possible to install a custom plugin on my own?
Is it possible to exchange jobs between two different jenkins?
Let us say, you have a pipeline. The first job was successful, but the second failed. What should you do next?
Mention what are the commands you can use to start Jenkins manually?
Mention what are the two components Jenkins is mainly integrated with?
Most Artifactory repository tool used in DevOps Culture?
  • Jenkins is open-source.
  • Jenkins is written in Java and supported almost all platforms.
  • You just need to run: java -jar jenkins.war
  • It's master slave architecture supports distributed builds to reduce loads on the CI server.
  • It has more than 1000 plugin and it is easy to create new plugin too.
  • Jenkins integrates with virtually every SCM or build tool that exists.
  • Jenkins can be communicated via web based GUI, CLI and also provide Rest API for Python, XML and JSON
  • Jenkins 2 is a drop-in replacement of the Jenkins 1.x series of releases and fully backward compatible.
  • We can install Jenkins on Windows, Ubuntu/Debian, RedHat, Fedora, CentOS, FreeBSD, OpenBSD, Mac OS X, OpenSUSE, Gentoo.
  • It can support databases like SQL Server, SQLite, MySQL, PostgreSQL, and H2 database.
  • It supports browsers like Chrome, Firefox, and Internet Explorer.
  • It supports CVS and Subversion, built-in support for Git, and also integrates with a large number of other version control systems by plugins.
  • It features 127 plugins just for reporting purposes.
  • We can use HTML publisher plugin for publishing HTML report.
  • With the help of Jenkins plugins, we can do the Unit Test.
  • In Jenkins, there is no option for Built-in deployment projects.
  • In Jenkins, there is no built-in functionality for branch management. But we can achieve branching using plugins like Multi-Branch Project, and others.
Jenkins Master - Your main Jenkins server is the Master
  • Scheduling build jobs.
  • Dispatching builds to the slaves for the actual execution.
  • Monitor the slaves
  • Recording and presenting the build results.
  • A Master instance of Jenkins can also execute build jobs directly.
Jenkins Slave - A Slave is a Java executable that runs on a remote machine. 
  • It hears requests from the Jenkins Master instance.
  • Slaves can run on a variety of operating systems.
  • The job of a Slave is to do as they are told to, which involves executing build jobs dispatched by the Master.
  • You can configure a project to always run on a particular Slave machine or a particular type of Slave machine, or simply let Jenkins pick the next available Slave.
Jenkins Pipeline
  • It is used to know which task Jenkins is currently executing.
  • Often several different changes are made by several developers at once, so it is useful to know which change is getting tested or which change is sitting in the queue or which build is broken.
  • In build pipeline, the build as a whole is broken down into sections, such as the unit test, acceptance test, packaging, reporting, and deployment phases.
  • The pipeline phases can be executed in series or parallel, and if one phase is successful, it automatically moves on to the next phase (hence the relevance of the name “pipeline”).
      • Pipeline: A user-defined block which contains all the stages. It is a key part of declarative pipeline syntax.
      • Node: A node is a machine that executes an entire workflow. It is a key part of the scripted pipeline syntax.
      • Agent: instructs Jenkins to allocate an executor for the builds. It is defined for an entire pipeline or a specific stage.

    • It has the following parameters:
      • Any: Runs pipeline/ stage on any available agent
      • None: applied at the root of the pipeline, it indicates that there is no global agent for the entire pipeline & each stage must specify its own agent
      • Label: Executes the pipeline/stage on the labelled agent.
      • Docker: Uses docker container as an execution environment for the pipeline or a specific stage.
      • Stages: It contains all the work; each stage performs a specific task.
      • Steps: steps are carried out in sequence to execute a stage
    • In Jenkins, a pipeline is a collection of events or jobs which are interlinked with one another in a sequence.
    • It is a combination of plugins that support the integration and implementation of continuous delivery pipelines using Jenkins.
    • It is implemented as a code which allows several users to edit and execute the pipeline process.
    • Pipelines are robust. So if your server undergoes an unpredicted restart, the pipeline will be automatically resumed.
    • You can pause the pipeline process and make it wait to continue until there is an input from the user.
    • It support big projects. You can run many jobs, and even use pipelines in a loop.
JenkinsFile - Declarative, Scripted
  • Jenkins Pipeline can be defined by a text file called JenkinsFile. 
  • You can implement pipeline as code using JenkinsFile, and this can be defined by using a DSL (Domain Specific Language).
  • You can make pipelines automatically for all branches and can execute pull requests with just one JenkinsFile.
  • This is the singular source for your pipeline and can be customized by multiple users.
  • It can be defined by using either Web UI or with a JenkinsFile.
Plugin
Kubernetes Plugin - Jenkins plugin to run dynamic agents in a Kubernetes/Docker environment
Credentials Plugin - Load the ssh key
SiteMonitor Plugin - Monitor URLs
Timestamper Plugin - Add timestamp to job output
Dashboard View Plugin - Create dashboard
Log Parser Plugin - Parse the console output and highlight error/warning/info lines.
Build-timeout Plugin - Abort if job takes too long
Naginator Plugin - Retry failed a job
ThinBackup Plugin - Backup jenkins
JobConfigHistory Plugin - Backup job configuration
“Anything Goes” formatter - use JavaScript inside your project description
AnsiColor Plugin - Add support for ANSI escape sequences, including color, to Console Output
Build User Vars Plugin - Describe the user who started the build
Gitlab Plugin - Allows GitLab to trigger Jenkins builds
Workspace Cleanup - Plugin to delete the build workspace.
UpdateSites Manager - Plugin manage update sites, where Jenkins accesses in order to retrieve plugins

No comments:

Post a Comment

Most views on this month