53 lines
1.9 KiB
Groovy
53 lines
1.9 KiB
Groovy
pipeline {
|
|
agent { label 'net-core' }
|
|
stages {
|
|
stage('Build Components') {
|
|
steps {
|
|
sh 'sh ./build/scripts/components'
|
|
}
|
|
}
|
|
stage('Build Common') {
|
|
steps {
|
|
sh 'yarn link "asc-web-components" --cwd web/ASC.Web.Common'
|
|
sh 'yarn install --cwd web/ASC.Web.Common --frozen-lockfile'
|
|
sh 'yarn link --cwd packages/asc-web-common'
|
|
}
|
|
}
|
|
stage('Build Projects') {
|
|
parallel {
|
|
stage('Build Client') {
|
|
steps {
|
|
sh 'yarn link "asc-web-components" --cwd web/ASC.Web.Client'
|
|
sh 'yarn link "asc-web-common" --cwd web/ASC.Web.Client'
|
|
sh 'yarn install --cwd web/ASC.Web.Client --frozen-lockfile'
|
|
}
|
|
}
|
|
stage('Build People') {
|
|
steps {
|
|
sh 'yarn link "asc-web-components" --cwd products/ASC.People/Client'
|
|
sh 'yarn link "asc-web-common" --cwd products/ASC.People/Client'
|
|
sh 'yarn install --cwd products/ASC.People/Client'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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'
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |