-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
46 lines (38 loc) · 932 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
37
38
39
40
41
42
43
44
45
46
pipeline {
agent {
docker {
image 'cypress/base:14'
}
}
stages {
stage('build') {
steps {
echo "Running build ${env.BUILD_ID} on ${env.JENKINS_URL}"
sh 'npm ci'
}
}
stage('cypress parallel tests') {
environment {
CURRENTS_RECORD_KEY = credentials('currents-record-key')
CYPRESS_trashAssetsBeforeRuns = 'false'
}
// https://jenkins.io/doc/book/pipeline/syntax/#parallel
parallel {
// start several nodes in parallel
stage('node A') {
steps {
echo "Running build ${env.BUILD_ID}"
// sh "npm run e2e:record:parallel"
}
}
// second tester runs the same command
stage('node B') {
steps {
echo "Running build ${env.BUILD_ID}"
// sh "npm run e2e:record:parallel"
}
}
}
}
}
}