-
Notifications
You must be signed in to change notification settings - Fork 25
/
Jenkinsfile
36 lines (36 loc) · 1.08 KB
/
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
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 {
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:runAuthnMFE'
}
}
}
post {
// Send an email in case of failure
}
}