-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
24 lines (24 loc) · 827 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
pipeline {
agent any
stages {
stage("Setup Selenium Grid"){
steps{
sh "docker-compose up -d seleniumhub chromenode firefoxnode"
// It is required to setup the Grid related services separately as after executing the tests the Job still keeps on Running and waiting for more requests
// -d is used to detach the process after setting up Grid
// if not invoked grid separately than it will result in a never ending Jenkins Job
}
}
stage("Run Automated Tests"){
steps{
sh "docker-compose up automation_service"
}
}
}
post{
always{
archiveArtifacts artifacts: 'container_output/**'
sh "docker-compose down"
}
}
}