-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile4
61 lines (50 loc) · 1.4 KB
/
Jenkinsfile4
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
node ('ubuntu-app-agent'){
def app
stage('Cloning Git') {
/* Let's make sure we have the repository cloned to our workspace */
checkout scm
}
stage('Secret-Management-SNYK'){
build 'SECURITY-SAST-SNYK'
}
stage('Secret-Management-TRUFFLEHOG'){
build 'trufflehog'
}
//stage('Secret-Management-OWASP-depncy-check'){
// build 'owasp-dependency-check'
//}
stage('SAST'){
build 'Sonar-Qube'
}
stage('Build-and-Tag') {
// sh 'echo Build-and-Tag'
/* This builds the actual image; synonymous to
* docker build on the command line */
app = docker.build("sindhuhack/snake")
}
stage('Post-to-dockerhub') {
sh 'echo Post-to-dockerhub'
docker.withRegistry('https://registry.hub.docker.com', 'docker_cred') {
app.push("latest")
}
}
stage('CONTAINER-SECURITY-ANCHORE'){
build 'SECURITY-IMAGE-SCANNER-ANCHORE'
}
stage('CONTAINER-SECURITY-AQUA'){
build 'CONTAINER-SECURITY-AQUA'
}
stage('Pull-image-server') {
sh 'echo Pull-image-server'
sh "docker-compose down"
sh "docker-compose up -d"
}
stage('DAST-ZAP')
{
build 'SECURITY-DAST-OWASP_ZAP'
}
stage('DAST-ARCHANI')
{
build 'SECURITY-DAST-Arachni'
}
}