forked from folio-org/stripes-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.RunTest
43 lines (37 loc) · 985 Bytes
/
Jenkinsfile.RunTest
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
@Library ('folio_jenkins_shared_libs') _
pipeline {
agent {
label 'master'
}
// This script expects input parameters called 'FOLIO_UI_URL and FOLIO_INSTANCE'
// and the docker image tag/version e.g. 'latest', etc - 'UI_TESTING_VERSION'
// parameters {
// string(name: 'FOLIO_UI_URL', defaultValue: '', description: 'FOLIO URL')
// }
// defaults
environment {
dockerImage = 'folioci/ui-testing'
}
stages {
stage('Prep') {
steps {
script {
currentBuild.displayName = "#${env.BUILD_NUMBER}-${env.JOB_BASE_NAME}"
}
step([$class: 'WsCleanup'])
}
}
stage('Run UI Regression Test') {
steps {
script {
env.testStatus = runUiRegression(env.UI_TESTING_VERSION,env.FOLIO_UI_URL)
}
}
}
}
post {
always {
sendUitestNotifications(env.testStatus,env.FOLIO_INSTANCE)
}
}
}