Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
a8e79f9
Update index.jsp
Nandeesh94 Aug 20, 2024
c80519d
Update index.jsp
Nandeesh94 Aug 20, 2024
0370b6a
Update index.jsp
Nandeesh94 Aug 20, 2024
a20de9f
Update index.jsp
Nandeesh94 Aug 20, 2024
1c88183
Update index.jsp
Nandeesh94 Aug 20, 2024
175843c
Update index.jsp
Nandeesh94 Aug 20, 2024
dcabce0
Update index.jsp
Nandeesh94 Sep 3, 2024
1f55023
Update index.jsp
Nandeesh94 Sep 3, 2024
c65837f
Update index.jsp
Nandeesh94 Sep 3, 2024
54aa699
Update index.jsp
Nandeesh94 Sep 4, 2024
a264615
Update index.jsp
Nandeesh94 Sep 4, 2024
19c1940
Update index.jsp
Nandeesh94 Sep 4, 2024
43200fb
Update index.jsp
Nandeesh94 Sep 4, 2024
0f9fcc0
Update pom.xml
Nandeesh94 Jan 10, 2025
29257f9
Update pom.xml
Nandeesh94 Jan 10, 2025
03844b9
Create pom.xml-java-17
Nandeesh94 Jan 11, 2025
04dae6a
Update pom.xml
Nandeesh94 Jan 11, 2025
b6ac669
Update pom.xml
Nandeesh94 Jan 11, 2025
7e4c4c1
Update index.jsp
Nandeesh94 Jan 15, 2025
723c75e
Update index.jsp
Nandeesh94 Jan 15, 2025
8f76e0d
Update index.jsp
Nandeesh94 Jan 15, 2025
2b194a0
Update index.jsp
Nandeesh94 Jan 15, 2025
805f2b4
Update index.jsp
Nandeesh94 Jan 15, 2025
e7f673b
Update index.jsp
Nandeesh94 Jan 15, 2025
443cdae
Update index.jsp
Nandeesh94 Jan 27, 2025
19d1df8
Update index.jsp
Nandeesh94 Jan 27, 2025
30ea877
Update index.jsp
Nandeesh94 May 27, 2025
37217d5
Update index.jsp
Nandeesh94 May 27, 2025
59e9b1d
Update index.jsp
Nandeesh94 May 27, 2025
b79efdc
Update index.jsp
Nandeesh94 May 27, 2025
fbfdb10
Update index.jsp
Nandeesh94 May 27, 2025
4b203c1
Update index.jsp
Nandeesh94 May 27, 2025
fae8474
Create prod-grade-pom.xml-17
Nandeesh94 Jul 1, 2025
9a19c8f
Update pom.xml-java-17
Nandeesh94 Jul 1, 2025
f7abdfc
Update pom.xml-java-17
Nandeesh94 Jul 1, 2025
d138297
Update pom.xml
Nandeesh94 Jul 1, 2025
b0226bc
Update pom.xml
Nandeesh94 Jul 1, 2025
463f550
Create buildspec.yml
Nandeesh94 Aug 21, 2025
76cbea1
Update buildspec.yml
Nandeesh94 Aug 21, 2025
3b148f8
Update buildspec.yml
Nandeesh94 Aug 21, 2025
85aae43
all files
Sep 17, 2025
7f2653b
Merge pull request #1 from Nandeesh94/test
Nandeesh94 Sep 17, 2025
25807bc
Update jenkins
Nandeesh94 Sep 17, 2025
4d3f7b5
Merge pull request #2 from Nandeesh94/test
Nandeesh94 Sep 17, 2025
a4d58cf
Delete jenkins
Nandeesh94 Sep 17, 2025
6da8b1a
Create index.jsp (or index.html)
Nandeesh94 Sep 22, 2025
213e47f
Create app.css
Nandeesh94 Sep 22, 2025
e1d8a90
Create app.js
Nandeesh94 Sep 22, 2025
2fa2ec1
Merge pull request #3 from Nandeesh94/bugfix
Nandeesh94 Sep 22, 2025
a4e072f
Create index.html
Nandeesh94 Sep 22, 2025
fc39bff
Update pom.xml
Nandeesh94 Sep 24, 2025
f0d9bc0
Delete pom.xml-java-17
Nandeesh94 Sep 24, 2025
1f5e9ac
Delete prod-grade-pom.xml-17
Nandeesh94 Sep 24, 2025
f0f8bb6
Create kk-pom.xml
Nandeesh94 Sep 24, 2025
bae579a
Update kk-pom.xml
Nandeesh94 Sep 24, 2025
b3f8e40
Update kk-pom.xml
Nandeesh94 Sep 24, 2025
319d33e
Update kk-pom.xml
Nandeesh94 Sep 24, 2025
b8ac947
Delete pom.xml
Nandeesh94 Sep 24, 2025
8353196
Update kk-pom.xml
Nandeesh94 Sep 24, 2025
afccf3e
Update kk-pom.xml
Nandeesh94 Sep 24, 2025
2953169
Rename kk-pom.xml to pom.xml
Nandeesh94 Sep 24, 2025
bc158f5
Update pom.xml
Nandeesh94 Sep 24, 2025
8e5583e
Update pom.xml
Nandeesh94 Sep 24, 2025
261cb6e
Update pom.xml
Nandeesh94 Sep 24, 2025
8633ad6
Update pom.xml
Nandeesh94 Sep 25, 2025
71900c5
Update pom.xml
Nandeesh94 Sep 25, 2025
8fdbf45
Update pom.xml
Nandeesh94 Sep 25, 2025
d953db6
Update pom.xml
Nandeesh94 Sep 25, 2025
b2eef35
Update pom.xml
Nandeesh94 Sep 25, 2025
ef10b78
Update pom.xml
Nandeesh94 Sep 25, 2025
de8463b
Update pom.xml
Nandeesh94 Sep 28, 2025
58ed812
Update pom.xml
Nandeesh94 Sep 29, 2025
5221fd8
Update pom.xml
Nandeesh94 Sep 29, 2025
660f28e
Update pom.xml
Nandeesh94 Sep 29, 2025
0cc6329
Update pom.xml
Nandeesh94 Sep 29, 2025
bf1678f
Update pom.xml
Nandeesh94 Oct 4, 2025
48f4a0c
Update pom.xml
Nandeesh94 Oct 4, 2025
8e31c55
Update pom.xml
Nandeesh94 Oct 4, 2025
ba8e3c5
Update pom.xml
Nandeesh94 Oct 4, 2025
aa6f9bc
Update pom.xml
Nandeesh94 Oct 4, 2025
ab6584c
Update pom.xml
Nandeesh94 Oct 4, 2025
2acbe8b
Update pom.xml
Nandeesh94 Oct 4, 2025
a58efe1
Update pom.xml
Nandeesh94 Oct 4, 2025
62fe12b
Update pom.xml
Nandeesh94 Oct 4, 2025
7669248
Update pom.xml
Nandeesh94 Oct 5, 2025
712dd70
Update pom.xml
Nandeesh94 Oct 5, 2025
e2b7fd2
Update index.jsp
Nandeesh94 Oct 5, 2025
84c6039
Update pom.xml
Nandeesh94 Oct 5, 2025
c6ccf72
Update index.jsp
Nandeesh94 Oct 5, 2025
12eadfd
Update pom.xml
Nandeesh94 Oct 5, 2025
1156902
Update index.jsp
Nandeesh94 Oct 5, 2025
2e500bf
Update index.jsp
Nandeesh94 Oct 5, 2025
d944a70
Update index.jsp
Nandeesh94 Oct 5, 2025
dda4c77
Update index.jsp
Nandeesh94 Oct 5, 2025
be65256
Update pom.xml
Nandeesh94 Oct 15, 2025
8165945
Update index.jsp
Nandeesh94 Oct 15, 2025
0c6b1e9
Update pom.xml
Nandeesh94 Oct 22, 2025
335a71b
Update pom.xml
Nandeesh94 Oct 25, 2025
4e7c20c
Update index.jsp
Nandeesh94 Oct 25, 2025
fbf47d8
Create Jenkinsfile
Nandeesh94 Oct 25, 2025
5489017
Update pom.xml
Nandeesh94 Oct 28, 2025
49595c0
Create JenkinsfileDLP
Nandeesh94 Oct 28, 2025
b3f6be9
Update JenkinsfileDLP
Nandeesh94 Oct 28, 2025
05e3cb5
Update JenkinsfileDLP
Nandeesh94 Oct 28, 2025
a59c33b
Update index.jsp
Nandeesh94 Oct 28, 2025
2f300b3
Update JenkinsfileDLP
Nandeesh94 Oct 28, 2025
fad5a23
Update index.jsp
Nandeesh94 Oct 28, 2025
029421d
Update JenkinsfileDLP
Nandeesh94 Oct 29, 2025
30a2fdb
Update pom.xml
Nandeesh94 Oct 29, 2025
14652f0
Update pom.xml
Nandeesh94 Oct 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
node {
def mavenHome = tool name: 'maven_3.9.11', type:'maven'

try {

stage('checkout') {
git branch: 'deployement', url: 'https://github.com/Nandeesh94/jenkins-java-project.git'
}
stage('build') {
sh "${mavenHome}/bin/mvn clean package"
}
stage('sonarqube report') {
sh "${mavenHome}/bin/mvn clean sonar:sonar"
}
stage('upload to nexus') {
sh "${mavenHome}/bin/mvn clean deploy"
}
stage('upload to tomcat') {
withCredentials([usernamePassword(credentialsId:'tomcat-deployer',usernameVariable: 'DEPLOY_USER',passwordVariable: 'DEPLOY_PASS')]) {
sh """
curl -u $DEPLOY_USER:$DEPLOY_PASS \
--upload-file /var/lib/jenkins/workspace/jio-declarative-pipeline/target/netflix-clone.war \
"http://3.129.52.3:8080/manager/text/deploy?path=/netflix-clone&update=true"
"""
}
}
stage('verify deployment') {
sh "curl -I http://3.129.52.3:8080/netflix-clone/"
}
} catch (err) {
error "Pipeline failed: ${err}"
}
}
89 changes: 89 additions & 0 deletions JenkinsfileDLP
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
pipeline {
agent any

tools {
maven 'maven_3.9.11'
}

environment {
BUILD_STATUS = 'SUCCESS'
}

stages {
stage('checkout') {
steps {
git branch: 'deployement', url: 'https://github.com/Nandeesh94/jenkins-java-project.git'
}
}
stage('build') {
steps {
sh "mvn clean package"
}
}
stage('sonarqube report') {
steps {
sh "mvn clean sonar:sonar"
}
}
stage('upload nexus') {
steps {
sh "mvn clean deploy"
}
}
stage('deploy tomcat') {
steps {
withCredentials([usernamePassword(credentialsId:'tomcat-deployer',usernameVariable:'DEPLOY_USER',passwordVariable:'DEPLOY_PASS')]) {
sh """
curl -u $DEPLOY_USER:$DEPLOY_PASS \
--upload-file target/netflix-clone.war \
"http://18.218.177.248:8080/manager/text/deploy?path=/netflix-clone&update=true"
"""
}
}
}
stage('verify deployment') {
steps {
catchError(buildResult:'FAILURE',stageResult:'FAILURE') {
sh "curl -I http://18.218.177.248:8080/netflix-clone/"
}
}
}
stage('jenkins backup') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') {
sh 'sudo /opt/scripts/jenkins_backup.sh'
}
}
}
}
post {
always {
echo "cleaning up workspace.."
deleteDir()
}
success {
slackSend(
color: '#00FF00',
message: "✅ SUCCESS: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})",
channel: '#bsnl-test'
)
}

failure {
slackSend(
color: '#FF0000',
message: "❌ FAILURE: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})",
channel: '#bsnl-test'
)
}

aborted {
slackSend(
color: '#FFFF00',
message: "🛑 ABORTED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})",
channel: '#bsnl-test'
)
}
}
}

113 changes: 113 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
:root{
--bg:#0b0b0f;
--bg-soft:#12121a;
--text:#eaeaea;
--muted:#a5a5a5;
--primary:#e50914;
--primary-700:#b00710;
--accent:#3ea6ff;
--card:#1a1a24;
--ring: 0 0 0 2px color-mix(in srgb, var(--text) 10%, transparent);
}

* { box-sizing: border-box; }
html,body { height:100%; }
body{
margin:0;
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
background: radial-gradient(1000px 600px at 80% -10%, #1a1a2e44, transparent), var(--bg);
color: var(--text);
}

.container{ width:min(1200px, 92%); margin-inline:auto; }

.nav{
position:sticky; top:0; z-index:10;
display:flex; align-items:center; justify-content:space-between;
padding:14px min(4vw,28px);
background: linear-gradient(180deg, #0b0b0fcc 0%, #0b0b0f00 100%);
backdrop-filter: saturate(1.2) blur(6px);
border-bottom: 1px solid #ffffff10;
}
.nav__brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:0.3px; }
.logo{ display:inline-grid; place-items:center; width:28px; height:28px; border-radius:6px; background:var(--primary); color:white; }
.brand{ font-weight:700; }
.nav__links a{ color:var(--muted); margin:0 10px; text-decoration:none; }
.nav__links a.active, .nav__links a:hover{ color:var(--text); }
.nav__actions{ display:flex; align-items:center; gap:12px; }
.search{
padding:8px 10px; border-radius:8px; border:1px solid #ffffff22; background:#0f0f15; color:var(--text);
}
.avatar{ width:32px; height:32px; border-radius:50%; }

.hero{
position:relative; min-height:58vh; display:grid; align-items:end;
background: center/cover no-repeat;
background-image: var(--bg);
}
.hero::before{
content:""; position:absolute; inset:0;
background: linear-gradient(180deg, transparent 0%, #0b0b0f 80%);
}
.hero__overlay{
position:absolute; inset:0;
background: linear-gradient(90deg, #0b0b0f 0%, #0b0b0fbb 35%, transparent 60%);
}
.hero__content{ position:relative; padding:60px 0; }
.hero__title{ font-size: clamp(28px, 6vw, 56px); margin:0 0 8px; }
.hero__meta{ color:var(--muted); margin:0 0 16px; }
.hero__desc{ color:#d6d6d6; max-width:60ch; margin:0 0 24px; }
.btn{
display:inline-flex; align-items:center; gap:8px;
padding:10px 16px; border-radius:10px; border:1px solid #ffffff22; background:#ffffff10; color:var(--text);
cursor:pointer; transition:.2s ease; box-shadow: var(--ring);
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{ background:var(--primary); border-color:var(--primary); }
.btn--primary:hover{ background:var(--primary-700); }

.row{ margin: 28px auto 10px; }
.row__title{ font-size:20px; font-weight:700; margin:12px 0 10px; }

.cards{
display:grid; gap:14px;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.cards--scroll{
display:flex; gap:14px; overflow:auto; padding-bottom:6px;
scroll-snap-type:x mandatory;
}
.cards--scroll .card{ scroll-snap-align:start; }

.card{
position:relative; overflow:hidden; border-radius:12px; background:var(--card);
box-shadow: 0 6px 16px #00000055; isolation:isolate;
}
.card img{ width:100%; height:240px; object-fit:cover; display:block; filter:saturate(1.05) contrast(1.02); }
.card__overlay{
position:absolute; inset:auto 0 0 0; padding:10px; display:grid; gap:8px;
background: linear-gradient(180deg, #00000000, #000000cc 60%);
transform: translateY(40%); transition: .25s ease;
}
.card:hover .card__overlay{ transform: translateY(0); }
.badge{
align-self:start; justify-self:start;
background:#000000aa; color:#fff; border:1px solid #ffffff22; font-size:12px;
padding:2px 6px; border-radius:6px;
}
.controls{ display:flex; align-items:center; gap:10px; color:#ddd; }
.icon{
width:34px; height:34px; border-radius:999px; border:1px solid #ffffff33; background:#ffffff10;
display:inline-grid; place-items:center; cursor:pointer;
}
.icon.play::before{ content:"▶"; margin-left:2px; font-size:13px; }
.icon.add::before{ content:"+"; font-size:14px; }
.meta{ margin-left:auto; font-size:12px; color:#bdbdbd; }

.footer{ border-top:1px solid #ffffff10; margin-top:30px; padding:20px 0 60px; color:var(--muted); }
.footer .links{ display:flex; flex-wrap:wrap; gap:16px; margin-bottom:8px; }
.footer a{ color:#bdbdbd; text-decoration:none; }
.footer a:hover{ color:#ffffff; }

/* Small utility */
.theme-dark { color-scheme: dark; }
25 changes: 25 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Simple interactivity hooks (expandable for real data)
document.addEventListener('DOMContentLoaded', () => {
// Smooth scroll for horizontal rows
document.querySelectorAll('.cards--scroll').forEach(row => {
let isDown = false, startX = 0, scrollLeft = 0;
row.addEventListener('mousedown', e => { isDown = true; startX = e.pageX - row.offsetLeft; scrollLeft = row.scrollLeft; });
row.addEventListener('mouseleave', () => isDown = false);
row.addEventListener('mouseup', () => isDown = false);
row.addEventListener('mousemove', e => {
if (!isDown) return;
e.preventDefault();
const x = e.pageX - row.offsetLeft;
row.scrollLeft = scrollLeft - (x - startX) * 1.4;
});
});

// Card button demos
document.body.addEventListener('click', (e) => {
if (e.target.closest('.icon.play')) {
alert('Play clicked');
} else if (e.target.closest('.icon.add')) {
alert('Added to your list');
}
});
});
18 changes: 18 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 0.2

phases:
install:
commands:
- echo "Installing dependencies..."
build:
commands:
- echo "Building project..."
- mvn package
post_build:
commands:
- echo "Build completed successfully"

artifacts:
files:
- target/*.war
- target/*.jar
Loading