Compare commits
1 Commits
main
...
build/jenk
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ad7bde322 |
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