Selector/.jenkins/jenkinsfile

36 lines
709 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:28:39 +01:00
dotnetRestore ("Selector.Core.sln")
dotnetBuild ("Selector.Core.sln")
2023-04-24 00:25:01 +01:00
}
}
stage('Build Javascript') {
steps {
2023-04-24 00:28:39 +01:00
sh ("npm ci")
sh ("npm run build --if-present")
2023-04-24 00:25:01 +01:00
}
}
stage('Test') {
steps {
2023-04-24 00:28:39 +01:00
dotnetTest ("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
}
}
}