Poszukiwacz/Jenkinsfile

32 lines
430 B
Plaintext
Raw Normal View History

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 {
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:47:39 +01:00
sh "~/.dotnet/dotnet build --configuration Relase"
2020-12-03 16:04:37 +01:00
}
2020-12-03 13:24:47 +01:00
}
}
}
}