Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d79eb88
Create Jenkinsfile
Shubham-Bhingarde May 16, 2023
214670f
Update Jenkinsfile
Shubham-Bhingarde May 16, 2023
731053b
Update Jenkinsfile
Shubham-Bhingarde May 16, 2023
16fab1c
Update Jenkinsfile
Shubham-Bhingarde May 30, 2023
2de7657
Update Jenkinsfile
Shubham-Bhingarde May 31, 2023
34b9895
Update Jenkinsfile
Shubham-Bhingarde May 31, 2023
8bc183b
Update Jenkinsfile
Shubham-Bhingarde Jun 1, 2023
3c9b181
Update Jenkinsfile
Shubham-Bhingarde Jun 1, 2023
5f04b12
Update Jenkinsfile
Shubham-Bhingarde Jun 1, 2023
e6f9c25
Update Jenkinsfile
Shubham-Bhingarde Jun 1, 2023
c8917e2
Update Jenkinsfile
Shubham-Bhingarde Jun 1, 2023
1f9b290
Update Jenkinsfile
Shubham-Bhingarde Jun 1, 2023
ddf52e7
Update Jenkinsfile
Shubham-Bhingarde Jun 1, 2023
06b9211
Update Jenkinsfile
Shubham-Bhingarde Jun 5, 2023
deb31a4
Update Jenkinsfile
Shubham-Bhingarde Jun 5, 2023
950a5e0
Update Jenkinsfile
Shubham-Bhingarde Jun 5, 2023
a785849
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
732bef5
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
ef9acaf
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
d434001
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
f3aded9
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
692ca98
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
7a6d537
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
1abdfb4
Update Jenkinsfile
Shubham-Bhingarde Jun 9, 2023
053ade1
Rename Jenkinsfile to JenkinsFile
Shubham-Bhingarde Jun 27, 2023
98d0dd3
Create Jenkinsfile
Shubham-Bhingarde Jun 27, 2023
609c87b
Update Jenkinsfile
Shubham-Bhingarde Jun 27, 2023
ed417a4
Update Jenkinsfile
Shubham-Bhingarde Jun 27, 2023
8ed8e67
Update Jenkinsfile
Shubham-Bhingarde Jun 27, 2023
5d5adfd
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
7e6f295
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
22246e2
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
48aa3c6
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
8083029
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
34b64f2
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
f0e2fc4
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
8afbd42
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
9838e38
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
51d0d2d
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
662ce41
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
3a9fbdf
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
1892f28
Update Jenkinsfile
Shubham-Bhingarde Oct 13, 2025
ce9b25b
Update JenkinsFile
Shubham-Bhingarde Oct 13, 2025
1e6b25f
Fix Maven build failure with Java 21
google-labs-jules[bot] Oct 13, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
1 change: 1 addition & 0 deletions JenkinsFile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

57 changes: 57 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
pipeline {
agent any
tools {
maven 'Maven'
}
stages {
stage ('Initialize') {
steps {
sh '''
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
}
}

stage ('Check-Git-Secrets') {
steps {
sh 'rm trufflehog.txt || true'
sh 'sudo -S trufflehog git https://github.com/Shubham-Bhingarde/webapp --results=verified > trufflehog.txt'
sh 'cat trufflehog.txt'
}
}



stage ('SAST') {
steps {
sh "mvn clean verify sonar:sonar -Dsonar.projectKey=DevSecOps -Dsonar.projectName='DevSecOps' -Dsonar.host.url=http://10.210.12.92:9000 -Dsonar.token=sqp_bf397c7f86688af960d4b6b4f8fe3d7193d9e29b"
sh 'cat target/sonar/report-task.txt'
}
}

stage ('Build') {
steps {
sh 'mvn clean package'
}
}

stage ('Deploy-To-Tomcat') {
steps {
sshagent(['tomcat']) {
sh 'scp -o StrictHostKeyChecking=no target/*.war [email protected]:/prod/apache-tomcat-9.0.110/webapps/webapp.war'
}
}
}


stage ('DAST') {
steps {
sshagent(['zap']) {
sh 'ssh -o StrictHostKeyChecking=no [email protected] "docker run -t owasp/zap2docker-stable zap-baseline.py -t http://10.210.12.93:8080/webapp/" || true'
}
}
}

}
}
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,12 @@
</dependencies>
<build>
<finalName>WebApp</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
</plugin>
</plugins>
</build>
</project>