-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
27 lines (26 loc) · 750 Bytes
/
Jenkinsfile
File metadata and controls
27 lines (26 loc) · 750 Bytes
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
pipeline{
agent any
stages{
stage('Making Grid UP'){
steps{
bat "docker-compose -f grid.yaml up -d"
}
}
stage('Running Tests'){
steps{
bat "docker-compose -f test_suite.yaml up --pull=always"
script{
if(fileExists("output/test_results1/testng-failed.xml") || fileExists("output/test_results1/testng-failed.xml")){
error("Failed test case found..So failing Entire build..")
}
}
}
}
}
post{
always{
bat "docker-compose -f grid.yaml down"
bat "docker-compose -f test_suite.yaml down"
}
}
}