journal.pl/Jenkinsfile
primakov 5d075ac6da
Some checks failed
platform/bro/pipeline/head There was a failure building this commit
platform/bro/pipeline/pr-master There was a failure building this commit
#7 cleanup after build
2024-03-29 13:29:35 +03:00

38 lines
476 B
Groovy

pipeline {
agent {
docker {
image 'node:18'
}
}
stages {
stage('install') {
steps {
sh 'node -v'
sh 'npm -v'
sh 'npm ci'
}
}
stage('eslint') {
steps {
sh 'npm run eslint'
}
}
stage('build') {
steps {
sh 'npm run build'
}
}
stage('clean-all') {
steps {
sh 'rm -rf .[!.]*'
sh 'rm -rf ./*'
sh 'ls -a'
}
}
}
}