-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Jenkinsfile
44 lines (44 loc) · 1.46 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
pipeline {
agent any
stages {
stage('Setup Dependencies') {
steps {
sh 'dotnet restore'
}
}
stage('Build') {
parallel {
stage('Linux') {
steps {
sh 'dotnet publish -r linux-x64 -c Release -p:PublishTrimmed=true --self-contained true --no-restore --output Linux-x64/'
sh 'mv Linux-x64/SupportBoi Linux-x64/SupportBoi-SC'
sh 'dotnet publish -r linux-x64 -c Release --self-contained false --no-restore --output Linux-x64/'
}
}
stage('Windows') {
steps {
sh 'dotnet publish -r win-x64 -c Release -p:PublishTrimmed=true --self-contained true --no-restore --output Windows-x64/'
sh 'mv Windows-x64/SupportBoi.exe Windows-x64/SupportBoi-SC.exe'
sh 'dotnet publish -r win-x64 -c Release --self-contained false --no-restore --output Windows-x64/'
}
}
}
}
stage('Archive') {
parallel {
stage('Linux') {
steps {
archiveArtifacts(artifacts: 'Linux-x64/SupportBoi', caseSensitive: true)
archiveArtifacts(artifacts: 'Linux-x64/SupportBoi-SC', caseSensitive: true)
}
}
stage('Windows') {
steps {
archiveArtifacts(artifacts: 'Windows-x64/SupportBoi.exe', caseSensitive: true)
archiveArtifacts(artifacts: 'Windows-x64/SupportBoi-SC.exe', caseSensitive: true)
}
}
}
}
}
}