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