2020-12-03 13:24:47 +01:00
|
|
|
pipeline {
|
2020-12-03 16:06:23 +01:00
|
|
|
agent any
|
|
|
|
|
2020-12-03 13:24:47 +01:00
|
|
|
stages {
|
2020-12-03 17:47:39 +01:00
|
|
|
stage('Install') {
|
|
|
|
steps {
|
2020-12-03 17:51:20 +01:00
|
|
|
sh "chmod 777 dotnet-install.sh"
|
2020-12-03 17:47:39 +01:00
|
|
|
sh "./dotnet-install.sh"
|
|
|
|
}
|
2020-12-03 17:49:04 +01:00
|
|
|
}
|
2020-12-03 13:24:47 +01:00
|
|
|
stage('Restore') {
|
2020-12-03 16:04:37 +01:00
|
|
|
steps {
|
2020-12-03 13:24:47 +01:00
|
|
|
dir('Serwer') {
|
2020-12-03 17:47:39 +01:00
|
|
|
sh "~/.dotnet/dotnet restore"
|
2020-12-03 13:24:47 +01:00
|
|
|
}
|
2020-12-03 16:04:37 +01:00
|
|
|
}
|
2020-12-03 13:24:47 +01:00
|
|
|
}
|
|
|
|
stage('Clean') {
|
2020-12-03 16:04:37 +01:00
|
|
|
steps {
|
|
|
|
dir('Serwer') {
|
2020-12-03 17:47:39 +01:00
|
|
|
sh "~/.dotnet/dotnet clean"
|
2020-12-03 16:04:37 +01:00
|
|
|
}
|
2020-12-03 13:24:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
2020-12-03 16:04:37 +01:00
|
|
|
steps {
|
|
|
|
dir('Serwer') {
|
2020-12-03 17:59:57 +01:00
|
|
|
sh "~/.dotnet/dotnet build"
|
2020-12-03 19:08:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Tests') {
|
|
|
|
steps {
|
|
|
|
dir('Serwer') {
|
|
|
|
sh "~/.dotnet/dotnet test"
|
|
|
|
}
|
2020-12-03 13:24:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|