44 lines
No EOL
754 B
Groovy
44 lines
No EOL
754 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'node'
|
|
}
|
|
|
|
}
|
|
stages {
|
|
stage('yarn install') {
|
|
steps {
|
|
sh 'yarn install --pure-lockfile --ignore-engines'
|
|
}
|
|
}
|
|
stage('Tests') {
|
|
parallel {
|
|
stage('eslint') {
|
|
steps {
|
|
sh 'yarn run eslint'
|
|
}
|
|
}
|
|
stage('webext_lint') {
|
|
steps {
|
|
sh 'yarn run webext_lint'
|
|
}
|
|
}
|
|
stage('htmllint') {
|
|
steps {
|
|
sh 'yarn run htmllint'
|
|
}
|
|
}
|
|
stage('build') {
|
|
steps {
|
|
sh 'yarn run build'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Artefacts') {
|
|
steps {
|
|
archiveArtifacts 'web-ext-artifacts/'
|
|
}
|
|
}
|
|
}
|
|
} |