DocSpace-client/build/Jenkinsfile

57 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-01-06 11:15:57 +00:00
pipeline {
2020-01-08 13:02:43 +00:00
agent none
2020-01-06 11:15:57 +00:00
stages {
2020-01-08 12:34:06 +00:00
stage('Build') {
2020-01-08 13:02:43 +00:00
matrix {
2020-01-08 13:06:12 +00:00
agent { label "${PLATFORM}" }
2020-01-08 13:02:43 +00:00
axes {
axis {
name 'PLATFORM'
values 'net-core', 'master'
2020-01-08 12:34:06 +00:00
}
}
2020-01-08 13:02:43 +00:00
stages {
stage('Build Components') {
steps {
sh 'sh ./build/scripts/components.sh'
2020-01-08 12:34:06 +00:00
}
}
2020-01-08 13:02:43 +00:00
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'
}
}
2020-01-08 12:34:06 +00:00
}
}
}
2020-01-07 19:12:23 +00:00
stage('Test') {
2020-01-08 13:02:43 +00:00
agent { label 'net-core' }
2020-01-07 19:12:23 +00:00
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
}
}