-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
54 lines (50 loc) · 1.67 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/dhanyababu/Web7AgileProject.git']]])
}
}
stage('Build') {
steps {
bat 'dotnet build'
}
}
stage('Run') {
steps {
bat 'START /B dotnet run'
}
}
stage('Robot') {
steps {
sleep 10
bat 'robot -d results --variable BROWSER:headlesschrome "ProjectAgileWeb7/Tests/web7.robot"'
}
post {
always {
script {
step(
[
$class : 'RobotPublisher',
outputPath : 'results',
outputFileName : '**/output.xml',
reportFileName : '**/report.html',
logFileName : '**/log.html',
disableArchiveOutput: false,
passThreshold : 50,
unstableThreshold : 40,
otherFiles : "**/*.png,**/*.jpg",
]
)
}
}
}
}
}
post{
always{
bat 'TASKKILL /F /IM dotnet.exe'
}
}
}