Initial commit.
Some checks failed
RealYHD/dotnetresxutils/pipeline/head There was a failure building this commit
Some checks failed
RealYHD/dotnetresxutils/pipeline/head There was a failure building this commit
Added generated files and minor configurations. Added Jenkins pipeline configuration.
This commit is contained in:
30
Jenkinsfile
vendored
Normal file
30
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage("Cleanup") {
|
||||
steps {
|
||||
cleanWs(patterns: [[pattern: '**/bin/Release', type: 'INCLUDE'], [pattern: 'output/**', type: 'INCLUDE']])
|
||||
}
|
||||
}
|
||||
stage("Restore") {
|
||||
steps {
|
||||
dotnetRestore project: 'DotNetResxUtils'
|
||||
dotnetRestore project: 'DotNetResxUtils.Tests'
|
||||
}
|
||||
}
|
||||
stage("Test") {
|
||||
steps {
|
||||
dotnetTest noRestore: true, project: 'DotNetResxUtils.Tests'
|
||||
}
|
||||
}
|
||||
stage("Publish") {
|
||||
steps {
|
||||
dotnetPublish configuration: 'Release', outputDirectory: 'output/DotNetResxUtils/DotNetResxUtils-win-x64', project: 'DotNetResxUtils', runtime: 'win-x64', selfContained: true
|
||||
dotnetPublish configuration: 'Release', outputDirectory: 'output/DotNetResxUtils/DotNetResxUtils-linux-x64', project: 'DotNetResxUtils', runtime: 'linux-x64', selfContained: true
|
||||
fingerprint 'output/DotNetResxUtils/**/DotNetResxUtils*'
|
||||
tar file: "output/DotNetResxUtils-linux-x64.tar.gz", archive: true, compress: true, dir: "output/DotNetResxUtils/DotNetResxUtils-linux-x64"
|
||||
zip zipFile: "output/DotNetResxUtils-win-x64.zip", archive: true, dir: "output/DotNetResxUtils/DotNetResxUtils-win-x64"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user