2024-03-29 11:39:32 +03:00
|
|
|
pipeline {
|
2024-03-29 10:40:00 +03:00
|
|
|
agent {
|
|
|
|
docker {
|
2024-08-05 21:56:28 +03:00
|
|
|
image 'node:20'
|
2024-03-29 10:40:00 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('install') {
|
|
|
|
steps {
|
|
|
|
sh 'node -v'
|
|
|
|
sh 'npm -v'
|
|
|
|
sh 'npm ci'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('eslint') {
|
|
|
|
steps {
|
|
|
|
sh 'npm run eslint'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('build') {
|
|
|
|
steps {
|
2024-03-29 13:13:23 +03:00
|
|
|
sh 'npm run build'
|
2024-03-29 10:40:00 +03:00
|
|
|
}
|
|
|
|
}
|
2024-03-29 13:29:35 +03:00
|
|
|
|
|
|
|
stage('clean-all') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf .[!.]*'
|
|
|
|
sh 'rm -rf ./*'
|
|
|
|
sh 'ls -a'
|
|
|
|
}
|
|
|
|
}
|
2024-03-29 10:40:00 +03:00
|
|
|
}
|
2024-03-29 11:39:32 +03:00
|
|
|
}
|