Selector/.jenkins/jenkinsfile

38 lines
791 B
Plaintext
Raw Normal View History

2023-04-24 00:25:01 +01:00
pipeline {
agent any
stages {
stage('Build C#') {
steps {
2023-04-24 00:30:51 +01:00
dotnetRestore project: "Selector.Core.sln"
dotnetBuild project: "Selector.Core.sln"
2023-04-24 00:25:01 +01:00
}
}
stage('Build Javascript') {
steps {
2023-04-24 00:33:55 +01:00
dir ('Selector.Web') {
sh "npm ci"
sh "npm run build --if-present"
}
2023-04-24 00:25:01 +01:00
}
}
stage('Test') {
steps {
2023-04-24 00:30:51 +01:00
dotnetTest project: "Selector.Core.sln"
2023-04-24 00:25:01 +01:00
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
post {
always {
2023-04-24 00:27:03 +01:00
steps {
2023-04-24 00:28:39 +01:00
cleanWs()
2023-04-24 00:27:03 +01:00
}
2023-04-24 00:25:01 +01:00
}
}
}