DocSpace-buildtools/build/Jenkinsfile

47 lines
1.3 KiB
Groovy

pipeline {
agent { label 'net-core' }
stages {
stage('Build Components') {
steps {
sh 'sh ./build/scripts/components.bat'
}
}
stage('Build Common') {
steps {
sh 'sh ./build/scripts/common.bat'
}
}
stage('Build Projects') {
parallel {
stage('Build Client') {
steps {
sh 'sh ./build/scripts/client.bat'
}
}
stage('Build People') {
steps {
sh 'sh ./build/scripts/people.bat'
}
}
}
}
stage('Test') {
steps {
sh "cd ${env.WORKSPACE}/web/ASC.Web.Components && yarn test:coverage --ci --reporters=default --reporters=jest-junit || true"
}
post {
success {
junit 'web/ASC.Web.Components/junit.xml'
publishHTML target: [
allowMissing : false,
alwaysLinkToLastBuild: false,
keepAll : true,
reportDir : 'web/ASC.Web.Components/coverage/lcov-report',
reportFiles : 'index.html',
reportName : 'Test Report'
]
}
}
}
}
}