Added Jenkinsfile
This commit is contained in:
40
Jenkinsfile
vendored
Normal file
40
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user