-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
38 lines (38 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
pipeline {
agent any
stages {
stage('Setup Dependencies') {
steps {
sh 'dotnet restore'
}
}
stage('Build') {
parallel {
stage('Linux') {
steps {
sh 'dotnet publish -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -p:PublishTrimmed=true -r linux-x64 -c Release --self-contained true --no-restore --output Linux-x64/'
}
}
stage('Windows') {
steps {
sh 'dotnet publish -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -p:PublishTrimmed=true -r win-x64 -c Release --self-contained true --no-restore --output Windows-x64/'
}
}
}
}
stage('Archive') {
parallel {
stage('Linux') {
steps {
archiveArtifacts(artifacts: 'Linux-x64/RoleManager', caseSensitive: true)
}
}
stage('Windows') {
steps {
archiveArtifacts(artifacts: 'Windows-x64/RoleManager.exe', caseSensitive: true)
}
}
}
}
}
}