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:36:09 +01:00
|
|
|
cleanWs()
|
2023-04-24 00:25:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|