-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
45 lines (45 loc) · 1.34 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
pipeline {
agent {
node {
label 'jenkins-agent-robot'
}
}
stages {
stage('Running-Tests') {
steps {
sh '''
robot tests/sample_test.robot
'''
}
}
}
post {
success {
emailext(
to: '$DEFAULT_RECIPIENTS',
subject: "Build Success: ${env.JOB_NAME} - Build #${env.BUILD_NUMBER}",
body: """
Build was successful!
Please find the attached test reports.
""",
attachLog: true,
attachmentsPattern: 'report.html, log.html, output.xml'
)
}
failure {
emailext(
to: '$DEFAULT_RECIPIENTS',
subject: "Build Failure: ${env.JOB_NAME} - Build #${env.BUILD_NUMBER}",
body: """
Build failed!
Please check the attached logs for more details.
""",
attachLog: true,
attachmentsPattern: 'report.html, log.html, output.xml'
)
}
always {
robot outputPath: '.', logFileName: 'log.html', outputFileName: 'output.xml', reportFileName: 'report.html', passThreshold: 100, unstableThreshold: 75.0
}
}
}