-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
41 lines (36 loc) · 1.14 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
pipeline {
agent any
stages {
stage('Start tests') {
steps {
echo 'Starting'
}
}
stage('Run remote Bhima tests') {
steps {
sh '/home/jenkins/builds/run_tests'
}
}
}
post {
always {
archiveArtifacts(artifacts: 'results.zip, results/summary.txt, results/environment.txt', fingerprint: true)
junit(skipPublishingChecks: true, testResults: 'results/*.xml')
}
changed {
mail(to: '[email protected]',
subject: 'BHIMA Tests Regression',
from: '[email protected]',
body: "Details: ${env.JOB_NAME}, Build Number: ${env.BUILD_NUMBER}, \nBuild: ${env.BUILD_URL} \nConsole Output: ${env.BUILD_URL}console \nChanges: ${env.RUN_CHANGES_DISPLAY_URL}")
}
failure {
mail(to: '[email protected],[email protected]',
subject: 'BHIMA Tests Failure',
from: '[email protected]', body: "Details: ${env.JOB_NAME}, Build Number: ${env.BUILD_NUMBER}, \nBuild: ${env.BUILD_URL} \nConsole Output: ${env.BUILD_URL}console")
}
}
triggers {
cron('''0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 * * *
''')
}
}