-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
44 lines (44 loc) · 1.21 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
node ('linux') {
//def app
stage('Cloning Git') {
/* Let's make sure we have the repository cloned to our workspace */
checkout scm
}
stage('SNYK-SAST'){
build 'SNYK-SAST'
}
stage('SNYK-SCA'){
build 'SNYK-SCA'
}
stage('DC-SCA') {
sh "npm install --package-lock"
build 'Dependency-Check-SCA'
}
stage('DT-SCA') {
build 'Dependency-Track-SCA'
}
stage('Build-and-Tag') {
/* This builds the actual image; synonymous to
* docker build on the command line */
sh "sudo chmod 666 /var/run/docker.sock"
app = docker.build("sahil3112/major_project")
}
stage('Post-to-dockerhub') {
docker.withRegistry('https://registry.hub.docker.com', 'Docker') {
app.push("latest")
}
}
stage('SNYK-Container-Security-Testing') {
build 'SNYK-Container-Security-Testing'
}
stage('Aqua-Trivy-image-vulnerability-scanning') {
build 'Aqua-Trivy-image-vulnerability-scanning'
}
stage('Pull-image-server') {
sh "docker-compose down"
sh "docker-compose up -d"
}
stage('OWASP-ZAP-DAST') {
build 'OWASP-ZAP-DAST'
}
}