-
Notifications
You must be signed in to change notification settings - Fork 29
/
Jenkinsfile
36 lines (32 loc) · 838 Bytes
/
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
pipeline {
agent any
triggers {
cron('H 8 * * *')
}
stages {
stage('dependencies') {
steps {
sh 'npm i'
}
}
stage('cypress parallel tests') {
environment {
CYPRESS_RECORD_KEY = credentials('cypress-example-record-key')
CYPRESS_PROJECT_ID = credentials('cypress-example-project-id')
CYPRESS_trashAssetsBeforeRuns = 'false'
}
parallel {
stage('machine 1') {
steps {
sh "npm run cy:ci"
}
}
stage('machine 2') {
steps {
sh "npm run cy:ci"
}
}
}
}
}
}