-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathJenkinsfile
More file actions
44 lines (38 loc) · 1.07 KB
/
Jenkinsfile
File metadata and controls
44 lines (38 loc) · 1.07 KB
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
pipeline {
agent any
environment {
TARGET_URL = 'http://localhost:8000'
}
stages {
stage('Setup Vimana') {
steps {
sh '''
curl -s https://raw.githubusercontent.com/s4dhulabs/vimana-framework/develop/scripts/install | bash
'''
}
}
stage('Load Plugins') {
steps {
sh '''
source vfe
vimana list --plugins
'''
}
}
stage('Security Scan') {
steps {
sh '''
# Run D4M8 form fuzzing (Django Web Forms)
vimana run d4m8 --target-url $TARGET_URL
# Run ViewScan for code analysis (Django Views)
vimana run viewscan --project-dir "${WORKSPACE}"
'''
}
}
}
post {
always {
archiveArtifacts artifacts: '*.json,*.xml', fingerprint: true
}
}
}