-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jenkinsfile
52 lines (43 loc) · 1.05 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
#!groovy
@Library('SoloPipeline@1.0-rc11')
import com.soloplan.*
def Bucket = "tools"
def outputDir = "src/bin/Release"
pipeline {
agent {
label 'dotnet-framework'
}
stages {
stage('Agent info') {
steps {
stepAgentInfo()
}
}
stage('Build') {
steps {
stepMSBuild(project: 'src/Soloplan.WhatsON.sln', outputDir: outputDir)
}
}
stage('Test') {
steps {
stepNunit(folder: outputDir)
}
}
stage('Publish Snapshot') {
when {
branch 'master'
}
steps {
stepPublishArtifacts(bucket: Bucket, targetFolder: "whatson/master", folder: outputDir, exclude: ['*.deps.json', '*.Tests.dll', '.nupkg'], excludeSubfolders: false)
}
}
stage('Publish Release') {
when {
tag "v*"
}
steps {
stepPublishArtifacts(bucket: Bucket, targetFolder: "whatson/${env.TAG_NAME}", folder: outputDir, exclude: ['*.deps.json', '*.pdb', '*.Tests.dll', '.nupkg'], excludeSubfolders: false)
}
}
}
}