-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (30 loc) · 829 Bytes
/
Jenkinsfile
File metadata and controls
30 lines (30 loc) · 829 Bytes
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
pipeline {
agent {
docker {
image 'node:8.16.0'
}
}
stages {
stage('Build') {
steps {
sh 'rm -rf node_modules && npm install'
}
}
stage('Test') {
steps {
// 1. Enable Veracode Interactive for the steps that run the tests.
wrap([$class: 'VeracodeInteractiveBuildWrapper', location: 'host.docker.internal', port: '10010']) {
// 2. Download the IAST Agent into the project workspace.
sh 'curl -sSL https://s3.us-east-2.amazonaws.com/app.veracode-iast.io/iast-ci.sh | sh'
// 3. Run the tests with the Veracode Interactive Agent attached.
sh 'LD_LIBRARY_PATH=$WORKSPACE npm run test-iast'
}
}
}
stage('Deploy') {
steps {
sh 'echo npm package would run here...'
}
}
}
}