-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathJenkinsfile
60 lines (59 loc) · 1.32 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
55
56
57
58
59
60
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('\u2776 Build SqliteWrapped') {
steps {
dir ('linux') {
sh 'make -f SqliteWrapped.mk clean'
sh 'make -f SqliteWrapped.mk -j2'
sh 'cat ../sqlitewrap/IError.h ../sqlitewrap/StderrLog.h ../sqlitewrap/SysLogs.h ../sqlitewrap/Database.h ../sqlitewrap/Query.h > ./Debug/libSqliteWrapped.h'
}
}
}
stage('\u2777 Build MenuConvert') {
steps {
dir ('linux') {
sh 'make -f xrm-menu-convert.mk -j2'
}
}
}
stage('\u2778 Build PromptConvert') {
steps {
dir ('linux') {
sh 'make -f xrm-menu-prompt-convert.mk -j2'
}
}
}
stage('\u2779 Build UnitTests') {
steps {
dir ('linux') {
sh 'make -f xrm-unittest.mk -j2'
}
}
}
stage('\u277A Run UnitTests') {
steps {
dir ('linux') {
echo 'Running Unit Tests...'
dir ('Debug') {
sh './xrm-unittest'
}
}
}
}
stage('\u277B Build Appplication') {
steps {
dir ('linux') {
sh 'make -f xrm-server.mk -j2'
}
}
}
}
post {
always {
discordSend description: "Jenkins: **Oblivion/2 XRM - Rev.2 Rework** build #**${BUILD_NUMBER}**, Build Status: **${currentBuild.currentResult}**", footer: '', link: env.BUILD_URL, result: currentBuild.currentResult,
title: JOB_NAME, webhookURL: "${DISCORD_URL}"
}
}
}