-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
34 lines (27 loc) · 911 Bytes
/
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
@Library('SilasaryHelpers') _ // Where SilasaryHelpers is https://github.com/silasary/JenkinsHelpers
node {
stage('Clone'){
checkout scm
}
stage('Clean'){
sh('git clean -xdff')
}
stage('Build'){
msbuild()
}
stage('Publish'){
mono("Packager/bin/Release/Packager.exe", "Packager/bin/Release/Packager.exe")
mono("Packager/bin/Release/Packager.exe", "ClickMac/bin/Release/ClickMac.exe")
sh('cp -v ClickMac/bin/Release/ClickMac.exe ClickMac/bin/Release/_publish/')
}
stage('Test'){
mono('Tests/bin/Release/Tests.exe','')
//junit "TestResult.xml"
}
stage('Archive'){
archive '**/bin/Release/'
}
stage('Post-Build'){
step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false, consoleParsers: [[parserName: 'MSBuild']], defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', unHealthy: ''])
}
}