Files
Homepage/Jenkinsfile
Cameron Cordes cf3c8cd9f4
All checks were successful
Core Repos/Homepage/pipeline/head This commit looks good
Core Repos/Homepage/pipeline/pr-master This commit looks good
Add JUnit test report collection and artifact archive
2020-04-20 21:23:54 -04:00

39 lines
732 B
Groovy

pipeline {
agent {
dockerfile {
filename 'Dockerfile.jenkins'
dir '.'
args '-e CHROME_BIN=/bin/chromium -e NG_CLI_ANALYTICS="false"'
}
}
stages {
stage('setup') {
steps {
sh 'npm install'
}
}
stage('build') {
steps {
sh 'node_modules/.bin/ng build --prod'
}
}
stage('lint') {
steps {
sh 'node_modules/.bin/ng lint'
}
}
stage('test') {
steps {
sh 'node_modules/.bin/ng test --watch=false --progress=false --browsers=ChromeHeadlessCI'
}
}
}
post {
always {
archiveArtifacts artifacts: 'dist/Homepage/**', fingerprint: true
junit 'src/junit-report/**/*.xml'
}
}
}