update pipeline
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -4,15 +4,23 @@ pipeline {
|
||||
stage('Build') {
|
||||
steps {
|
||||
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') {
|
||||
steps {
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user