Skip to content

Commit d178548

Browse files
authored
Merge pull request #3 from NinjaX295/main
jenkins folder is added
2 parents 6cc61dc + 8af5bae commit d178548

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,4 @@ jobs:
5959
- name: ✅ Run tests
6060
run: npm test
6161
```
62-
6362

jenkins/Readme.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# 🚀 Jenkins CI/CD Overview
2+
3+
## 🧰 What is Jenkins?
4+
5+
[Jenkins](https://www.jenkins.io/) is an open-source automation server that helps automate the **building**, **testing**, and **deployment** of software. It’s highly extensible with plugins and integrates with many DevOps tools.
6+
7+
---
8+
9+
## ⚙️ How Jenkins Works
10+
11+
1. **Install Jenkins**
12+
- Download from [jenkins.io](https://www.jenkins.io/download/)
13+
- Start it locally:
14+
```bash
15+
java -jar jenkins.war
16+
```
17+
18+
2. **Configure a Job**
19+
- Create a new **Job** (Freestyle or Pipeline)
20+
- Add **build triggers** (like Git push, cron)
21+
- Define **build steps** (Shell scripts, Maven, etc.)
22+
23+
3. **Build & Deploy**
24+
- Triggers can be automatic or manual
25+
- View pipeline stages and results
26+
- Artifacts can be stored or deployed
27+
28+
---
29+
30+
## 📄 Example Jenkinsfile
31+
32+
```groovy
33+
pipeline {
34+
agent any
35+
stages {
36+
stage('Build') {
37+
steps {
38+
echo 'Building...'
39+
sh './gradlew build'
40+
}
41+
}
42+
stage('Test') {
43+
steps {
44+
echo 'Testing...'
45+
sh './gradlew test'
46+
}
47+
}
48+
stage('Deploy') {
49+
steps {
50+
echo 'Deploying...'
51+
}
52+
}
53+
}
54+
}
55+

0 commit comments

Comments
 (0)