https://www.interviewbit.
com/jenkins-interview-questions/#what-is-jenkins-pipeline
************ GIT: ************
13.GIT commands
7) How to resolve merge conflict
9) Git commands
CI/CD
CI/CD, or Continuous Integration and Continuous Delivery, is a software development process that
uses automation to quickly and accurately release software. It combines the practices of continuous
integration (CI) and continuous delivery (CD)
What is the basic concept of CI CD?
Continuous integration (CI) refers to the practice of automatically and frequently integrating code
changes into a shared source code repository. Continuous delivery and/or deployment (CD) is a 2
part process that refers to the integration, testing, and delivery of code changes.
CI/CD (Continuous Integration/Continuous Deployment) pipeline as an automated process in
software development. It involves integrating code changes frequently, running automated tests, and
deploying code to production quickly and consistently.
What is the scope of CI CD?
The scope of CI/CD is primarily focused on software development and delivery. It involves practices
like version control, code integration, testing, and deployment. CI/CD is a part of the build-and-
release process in the software development life cycle.
Continuous integration (CI): Automates the
process of integrating code changes from multiple developers into a central repository. This
involves
o automatically building and
o testing the code after each commit.
Involves frequently merging developer code into a shared repository
Uses automated build and testing to detect problems early
Analyzes code for security vulnerabilities and quality issues
Stores build artifacts for later use
Continuous delivery (CD) : Automates the
process of building,
testing, and
deploying software changes to production, often with little to no manual intervention.
Packages code changes and deploys them to a testing or staging environment
Ensures that software is always ready for deployment
Can be triggered manually or automated to become continuous deployment
Benefits of CI/CD
Improves software quality,
Reduces time to release updates,
Allows teams to respond quickly to customer needs, and
Facilitates collaboration among team members.
Stages of a CI/CD pipeline
1. Code commit and version control
2. Build and compilation
3. Automated testing
4. Code quality analysis
5. Artifact packaging
6. Deployment
7. Monitoring and feedback
Why is CI CD used?
Continuous integration, delivery, and deployment (CI/CD) enables teams:
-to release software more frequently without compromising on quality. With CI/CD, code changes
are done through an automated pipeline that
-handles the repetitive build, test, and deployment tasks and
-provides rapid feedback if any step fails.
What is the difference between CI CD and DevOps?
DevOps encompasses everything from infrastructure management to monitoring to build smooth
operations across the entire software development cycle. It's about creating environments to
develop, test, and operate effectively. CI/CD focuses specifically on the software build, test, and
deployment pipeline.
What is Jenkins used for?
Jenkins Working and Features
Jenkins is a Java-based open-source automation platform with plugins designed for continuous
integration. It is used to continually create and test software projects, making it easier for developers
and DevOps engineers to integrate changes to the project and for consumers to get a new build.
Is CI CD part of Agile?
What's the Difference Between Agile, CI/CD, and DevOps ...
While Agile, CI/CD, and DevOps are different, they support one another. Agile focuses on the
development process, CI/CD on practices, and DevOps on culture.
Is Jenkins CI or CD?
What is Jenkins and How Does It Work? | Definition from ...
Jenkins is an open source continuous integration/continuous delivery and deployment (CI/CD)
automation software DevOps tool written in the Java programming language. It is used to implement
CI/CD workflows called pipelines.
Which language is used in CI CD?
CI/CD pipelines are often written in a markup language, with YAML being the most common
language. Within YAML, CI/CD pipelines often also will contain Bash (Bourne Again Shell), as a Linux
machine often runs the build. Bash is a popular shell program that is available on most Linux
machines.
How to schedule Jenkins pipeline to trigger - configure Cron job
What is cron 30 4 1 15 * 5?
For example, the value 30 4 1,15 * 5 causes a command to run at 4:30 AM on the 1st and 15th of
each month, plus every Friday.
**Cron meaning: Cron is a process scheduler that allows you to execute commands, scripts, and
programs following specified schedules.
=============
How to write a Groovy script?
The procedure to create the Groovy build script contains the following steps:
Add package import statements.
Create data sets in PDS.
Copy the source file from the zFS directory to a PDS.
Compile the program.
Copy the SYSPRINT to zFS.
Finish the build script.
=========================
What is a Jenkins pipeline?
A Jenkins Pipeline is a set of plugins that extends Jenkins to implement automated, recurring
workflows, essentially creating a Continuous Integration and Continuous Delivery (CI/CD) pipeline.
It allows you to define a series of stages and steps to automate tasks like building, testing, and
deploying software. These pipelines are defined in a Jenkinsfile, a text file that can be checked into
source control, enabling them to be treated as code.