-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
45 lines (44 loc) · 991 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env groovy
pipeline {
agent {
docker {
image 'node:14'
}
}
environment {
CI = 'true'
YARN_CACHE_FOLDER = '/tmp/.yarn-cache'
}
stages {
stage('Lint') {
steps {
sh 'make lint-checkstyle'
recordIssues qualityGates: [[threshold: 1, type: 'TOTAL_ERROR', unstable: false]], tools: [esLint(pattern: 'test/tests.eslint.xml')], unhealthy: 50
}
}
stage('Build') {
steps {
sh 'make DATE=reproducible'
sh 'sha256sum ./umd/kwm.js*'
}
}
stage('Docs') {
steps {
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'docs/', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
}
}
stage('Dist') {
steps {
sh '$(git diff --stat)'
sh 'test -z "$(git diff --shortstat 2>/dev/null |tail -n1)" && echo "Clean check passed."'
sh 'make dist'
archiveArtifacts artifacts: 'dist/*.tgz', fingerprint: true
}
}
}
post {
always {
cleanWs()
}
}
}