SupportChild/Jenkinsfile

44 lines
1.5 KiB
Text
Raw Permalink Normal View History

2022-05-19 14:08:22 +00:00
pipeline {
agent any
stages {
stage('Setup Dependencies') {
steps {
sh 'dotnet restore'
}
}
stage('Build') {
parallel {
stage('Linux') {
steps {
2024-12-27 06:27:51 +00:00
sh 'dotnet publish -r linux-x64 -c Release -p:PublishTrimmed=true --self-contained true --no-restore --output Linux-x64/'
2024-12-27 06:26:24 +00:00
sh 'mv Linux-x64/SupportChild Linux-x64/SupportChild-SC'
2024-12-27 06:27:51 +00:00
sh 'dotnet publish -r linux-x64 -c Release --self-contained false --no-restore --output Linux-x64/'
2022-05-19 14:08:22 +00:00
}
}
stage('Windows') {
steps {
2024-12-27 06:27:51 +00:00
sh 'dotnet publish -r win-x64 -c Release -p:PublishTrimmed=true --self-contained true --no-restore --output Windows-x64/'
2024-12-27 06:26:24 +00:00
sh 'mv Windows-x64/SupportChild.exe Windows-x64/SupportChild-SC.exe'
2024-12-27 06:27:51 +00:00
sh 'dotnet publish -r win-x64 -c Release --self-contained false --no-restore --output Windows-x64/'
2022-05-19 14:08:22 +00:00
}
}
}
}
stage('Archive') {
parallel {
stage('Linux') {
steps {
archiveArtifacts(artifacts: 'Linux-x64/SupportChild', caseSensitive: true)
2024-12-27 06:26:24 +00:00
archiveArtifacts(artifacts: 'Linux-x64/SupportChild-SC', caseSensitive: true)
2022-05-19 14:08:22 +00:00
}
}
stage('Windows') {
steps {
archiveArtifacts(artifacts: 'Windows-x64/SupportChild.exe', caseSensitive: true)
2024-12-27 06:26:24 +00:00
archiveArtifacts(artifacts: 'Windows-x64/SupportChild-SC.exe', caseSensitive: true)
2022-05-19 14:08:22 +00:00
}
}
}
}
}
2024-12-27 06:26:24 +00:00
}