Added Jenkinsfile

This commit is contained in:
2024-07-12 10:49:17 +02:00
parent 2414014bfa
commit 5ad7bde322

40
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,40 @@
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'
}
}
}
}