Files
zsxt_nbzs_h5/Jenkinsfile
2021-06-08 06:38:30 +00:00

28 lines
632 B
Groovy

pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'StartBuild'
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 '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'
}
}
}
}