forked from openedx/cypress-e2e-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (37 loc) · 1.12 KB
/
Jenkinsfile
File metadata and controls
37 lines (37 loc) · 1.12 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
pipeline {
agent any
tools {nodejs "node"}
stages {
stage('build'){
steps{
git 'https://github.com/openedx/cypress-e2e-tests.git'
}
}
// Install and verify Cypress
stage('installation') {
steps {
sh 'npm install cypress --save-dev'
}
}
stage('run e2e tests') {
environment {
LMS_BASE_URL = 'https://authn.edx.org'
CYPRESS_ADMIN_USER_EMAIL = credentials('ADMIN_EMAIL')
CYPRESS_ADMIN_USER_PASSWORD = credentials('ADMIN_PASSWORD')
CYPRESS_LMS_USER_EMAIL = credentials('LMS_EMAIL')
CYPRESS_LMS_USER_PASSWORD = credentials('ADMIN_PASSWORD')
CYPRESS_GMAIL_ID = credentials('CYPRESS_GMAIL_ID')
CYPRESS_GMAIL_CLIENT_ID = credentials('CYPRESS_GMAIL_CLIENT_ID')
CYPRESS_GMAIL_CLIENT_SECRET = credentials('CYPRESS_GMAIL_CLIENT_SECRET')
CYPRESS_GMAIL_ACCESS_TOKEN = credentials('CYPRESS_GMAIL_ACCESS_TOKEM')
CYPRESS_GMAIL_REFRESH_TOKEN = credentials('CYPRESS_GMAIL_REFRESH_TOKEN')
}
steps {
sh 'npm run cy:run'
}
}
}
post {
// Send an email in case of failure
}
}