forked from cypress-io/cypress-example-kitchensink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
25 lines (23 loc) · 648 Bytes
/
Jenkinsfile
File metadata and controls
25 lines (23 loc) · 648 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
pipeline {
agent {
// this image provides everything needed to run Cypress
docker {
image 'cypress/base:10'
}
}
stages {
stage('build and test') {
environment {
// we will be recording test results and video on Cypress dashboard
// to record we need to set an environment variable
// we can load the record key variable from credentials store
// see https://jenkins.io/doc/book/using/using-credentials/
// CYPRESS_RECORD_KEY = credentials('cypress-example-kitchensink-record-key')
}
steps {
sh 'npm ci'
sh "npm run test:ci"
}
}
}
}