Poszukiwacz/Jenkinsfile

27 lines
329 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 {
stage('Restore') {
2020-12-03 16:04:37 +01:00
steps {
2020-12-03 13:24:47 +01:00
dir('Serwer') {
2020-12-03 16:16:02 +01:00
sh "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 16:16:02 +01:00
sh "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 16:16:02 +01:00
sh "dotnet build --configuration Relase"
2020-12-03 16:04:37 +01:00
}
2020-12-03 13:24:47 +01:00
}
}
}
}