update pipeline

This commit is contained in:
admin
2021-06-08 06:38:30 +00:00
parent e002b143aa
commit 9dea459ef6

14
Jenkinsfile vendored
View File

@@ -4,15 +4,23 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
echo 'StartBuild' echo 'StartBuild'
sh '''echo \'start build\'; sh 'dotnet restore Api/Ewide.Web.Entry/Ewide.Web.Entry.csproj'
''' sh 'dotnet clean Api/Ewide.Web.Entry/Ewide.Web.Entry.csproj'
sh 'dotnet build Api/Ewide.Web.Entry/Ewide.Web.Entry.csproj'
} }
} }
stage('Test') { stage('Test') {
steps { steps {
echo 'Start Test' echo 'Start Test'
sh 'echo \'dotnet test\';' sh 'dotnet test Api/Ewide.Test/Ewide.Test.csproj'
}
}
stage('Publish') {
steps {
echo 'StartPublish'
sh 'dotnet publish Api/Ewide.Web.Entry/Ewide.Web.Entry.csproj --Configuration Release'
} }
} }