Files
eShopOnWeb/Jenkinsfile
2024-07-12 10:49:17 +02:00

40 lines
653 B
Groovy

pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'dotnet build eShopOnWeb.sln'
}
}
stage('Tests') {
parallel {
stage('Unit') {
steps {
sh 'dotnet test tests/UnitTests'
}
}
stage('Integration') {
steps {
sh 'dotnet test tests/IntegrationTests'
}
}
stage('Functional') {
steps {
sh 'dotnet test tests/FunctionalTests'
}
}
}
}
stage('Deployement') {
steps {
sh 'dotnet publish eShopOnWeb.sln -o /var/aspnet'
}
}
}
}