-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
45 lines (38 loc) · 1.71 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
node {
stage('Checkout'){
git branch: 'master', url: 'http://localhost:8780/gki-team/gki.git'
}
dir('chat') {
stage('Chat Build'){
try {
sh './gradlew clean build jacocoTR'
} catch (e) {
println e.message
mattermostSend channel: 'jenkins@town-square', color: 'warning', endpoint: 'http://localhost:8880/hooks/xxyzbnbibjyzpryyqew7t318ie', message: e.message
}
}
stage('Chat ResultArchiver'){
archiveArtifacts 'build/libs/*.jar'
junit allowEmptyResults: true, testResults: 'build/test-results/test/*.xml'
step([$class: 'JacocoPublisher'])
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'build/reports/codenarc', reportFiles: 'main.html', reportName: 'Codenarc Report Of Chat'])
}
}
dir('container') {
stage('Bot Container Build'){
try {
sh './gradlew clean build jacocoTR'
} catch (e) {
println e.message
mattermostSend channel: 'jenkins@town-square', color: 'warning', endpoint: 'http://localhost:8880/hooks/xxyzbnbibjyzpryyqew7t318ie', message: e.message
}
}
stage('Bot Container ResultArchiver'){
archiveArtifacts 'build/libs/*.jar'
junit allowEmptyResults: true, testResults: 'build/test-results/test/*.xml'
step([$class: 'JacocoPublisher'])
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'build/reports/codenarc', reportFiles: 'main.html', reportName: 'Codenarc Report Of Bot Container'])
mattermostSend channel: 'jenkins@town-square', color: 'good', endpoint: 'http://localhost:8880/hooks/xxyzbnbibjyzpryyqew7t318ie', message: 'gki build done.'
}
}
}