DocSpace-client/build/Jenkinsfile

51 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-01-06 11:15:57 +00:00
pipeline {
2020-01-06 11:31:29 +00:00
agent { label 'net-core' }
2020-01-06 11:15:57 +00:00
stages {
2020-01-08 12:34:06 +00:00
stage('Build') {
stages {
stage('Components') {
steps {
sh 'sh ./build/scripts/components.sh'
}
}
stage('Common') {
steps {
sh 'sh ./build/scripts/common.sh'
}
}
stage('Projects') {
parallel {
stage('Client') {
steps {
sh 'sh ./build/scripts/client.sh'
}
}
stage('People') {
steps {
sh 'sh ./build/scripts/people.sh'
}
}
}
}
}
}
2020-01-07 19:12:23 +00:00
stage('Test') {
steps {
2020-01-07 19:35:05 +00:00
sh "cd ${env.WORKSPACE}/web/ASC.Web.Components && yarn test:coverage --ci --reporters=default --reporters=jest-junit || true"
2020-01-07 19:12:23 +00:00
}
2020-01-08 09:44:53 +00:00
post {
success {
junit 'web/ASC.Web.Components/junit.xml'
publishHTML target: [
allowMissing : false,
alwaysLinkToLastBuild: false,
keepAll : true,
2020-01-08 09:51:08 +00:00
reportDir : 'web/ASC.Web.Components/coverage/lcov-report',
2020-01-08 09:44:53 +00:00
reportFiles : 'index.html',
reportName : 'Test Report'
]
}
}
2020-01-07 19:12:23 +00:00
}
2020-01-06 11:15:57 +00:00
}
}