2022-10-25 22:17:59 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-10-25 22:31:58 +02:00
|
|
|
docker { image 'mcr.microsoft.com/dotnet/sdk:6.0'}
|
2022-10-25 22:17:59 +02:00
|
|
|
}
|
|
|
|
|
2022-10-25 22:41:49 +02:00
|
|
|
environment {
|
2022-10-25 22:44:52 +02:00
|
|
|
HOME = "${env.WORKSPACE}"
|
|
|
|
//DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME"
|
2022-10-25 22:41:49 +02:00
|
|
|
}
|
|
|
|
|
2022-10-25 22:17:59 +02:00
|
|
|
stages {
|
|
|
|
stage('nuget restore') {
|
|
|
|
steps {
|
2022-10-25 22:43:46 +02:00
|
|
|
sh "dotnet restore ${env.WORKSPACE}/src/PiwigoDotnet.sln"
|
2022-10-25 22:17:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-25 22:43:46 +02:00
|
|
|
// stage('build') {
|
|
|
|
// steps {
|
|
|
|
// sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER} ${env.WORKSPACE}/src/PiwigoDotnet.sln"
|
|
|
|
// }
|
|
|
|
// }
|
2022-10-25 22:17:59 +02:00
|
|
|
|
2022-10-25 22:43:46 +02:00
|
|
|
// stage('Testing') {
|
|
|
|
// steps {
|
|
|
|
// sh "cd ${env.WORKSPACE}/src"
|
|
|
|
// sh "dotnet test"
|
|
|
|
// }
|
|
|
|
// }
|
2022-10-25 22:17:59 +02:00
|
|
|
}
|
|
|
|
}
|