49 lines
706 B
Groovy
49 lines
706 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Install') {
|
|
steps {
|
|
sh "chmod 777 dotnet-install.sh"
|
|
sh "./dotnet-install.sh"
|
|
}
|
|
}
|
|
stage('Restore') {
|
|
steps {
|
|
dir('Serwer') {
|
|
sh "~/.dotnet/dotnet restore"
|
|
}
|
|
dir('Klient') {
|
|
sh "~/.dotnet/dotnet restore"
|
|
}
|
|
}
|
|
}
|
|
stage('Clean') {
|
|
steps {
|
|
dir('Serwer') {
|
|
sh "~/.dotnet/dotnet clean"
|
|
}
|
|
dir('Klient') {
|
|
sh "~/.dotnet/dotnet clean"
|
|
}
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
dir('Serwer') {
|
|
sh "~/.dotnet/dotnet build"
|
|
}
|
|
dir('Klient') {
|
|
sh "~/.dotnet/dotnet build"
|
|
}
|
|
}
|
|
}
|
|
stage('Tests') {
|
|
steps {
|
|
dir('Serwer') {
|
|
sh "~/.dotnet/dotnet test"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |