jenkins-scripts/Jenkinsfile
primakov 3f690a6b74
Some checks failed
test/jenkins-scripts/pipeline/head There was a failure building this commit
gitea-bro-js/jenkins-scripts/pipeline/head There was a failure building this commit
update common jenkins scripts
2024-03-29 10:17:42 +03:00

43 lines
564 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 || npm run lint'
}
}
stage('test') {
steps {
sh 'npm t'
}
}
stage('build') {
steps {
sh 'npm run build:prod'
}
}
stage('clean-all') {
steps {
sh 'rm -rf .[!.]*'
sh 'rm -rf ./*'
sh 'ls -a'
}
}
}
}