Jenkins OnPrem Project Architectural Diagram


Jenkins Server & Worker Commands


Initialize Git (if not already)

D:\gittest>git init
Initialized empty Git repository in D:/gittest/.git/

Add files to Stage & commit

D:\gittest>git add .
D:\gittest>git commit -m "Initial commit"

Set Git identity
D:\gittest>git config --global user.name "Kishore"
D:\gittest>git config --global user.email "tha.kishorekumar@gmail.com"

index.js
D:\gittest>git commit -m "Initial commit"
[master (root-commit) 7d9fec9] Initial commit
 1 file changed, 1 insertion(+)
 create mode 100644 index.js

Execute shell
D:\gittest>git branch -M main

D:\gittest>git remote add origin https://github.com/thakishorekumar/gittest.git

Jenkins Server Setup Commands

D:\gittest>git push -u origin main
info: please complete authentication in your browser...
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 243 bytes | 243.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/thakishorekumar/gittest.git
 * [new branch]      main -> main
branch 'main' set up to track 'origin/main'.

Jenkins Agent

D:\gittest>git log
commit 7d9fec924fb7c197f24c5a9c85c041a4e18b54e8 (HEAD -> main, origin/main)
Author: Kishore 
Date:   Wed Apr 22 15:07:30 2026 +0530

    Initial commit

t
git push --force

t

Find commit before merge
git log --oneline
>git log --online --decorate
git log --oneline --graph --all
OR
git log main

git log --oneline --decorate --graph


Key	Action
↑ / ↓	Scroll line
Space	Next page
b	Previous page
q	Exit ✅

t
Shows all branches + their latest commit info

git branch -av
Output:
* main                     7d9fec9 Initial commit					- Current branch
  feature-1                88bf54d adding second commit				- Local branch
  remotes/origin/main      7d9fec9 Initial commit					- GitHub branch
  remotes/origin/feature-1 88bf54d adding second commit

Delete feature branch
Delete local branch
git branch -d feature-1
Delete remote branch
git push origin --delete feature-1

t
git checkout -b feature-1   # recreate clean branch
# do changes again properly

git push -u origin feature-1

Deployment Images

Step 1:


Step 2:


Step 3:


Step 4:


Step 5:


Step 6:


Step 7:


Step 8: