32 lines
430 B
Groovy
32 lines
430 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Install') {
|
|
steps {
|
|
sh "./dotnet-install.sh"
|
|
}
|
|
}
|
|
stage('Restore') {
|
|
steps {
|
|
dir('Serwer') {
|
|
sh "~/.dotnet/dotnet restore"
|
|
}
|
|
}
|
|
}
|
|
stage('Clean') {
|
|
steps {
|
|
dir('Serwer') {
|
|
sh "~/.dotnet/dotnet clean"
|
|
}
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
dir('Serwer') {
|
|
sh "~/.dotnet/dotnet build --configuration Relase"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |