DocSpace-client/build/Jenkinsfile

57 lines
1.5 KiB
Groovy

pipeline {
agent none
stages {
stage('Build') {
matrix {
agent { label "${PLATFORM}" }
axes {
axis {
name 'PLATFORM'
values 'net-core', 'master'
}
}
stages {
stage('Build Components') {
steps {
sh 'sh ./build/scripts/components.sh'
}
}
stage('Build Common') {
steps {
sh 'sh ./build/scripts/common.sh'
}
}
stage('Build Client') {
steps {
sh 'sh ./build/scripts/client.sh'
}
}
stage('Build People') {
steps {
sh 'sh ./build/scripts/people.sh'
}
}
}
}
}
stage('Test') {
agent { label 'net-core' }
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'
]
}
}
}
}
}