journal.pl/Jenkinsfile

39 lines
495 B
Plaintext
Raw Permalink Normal View History

2024-03-29 11:39:32 +03:00
pipeline {
2024-03-29 10:40:00 +03:00
agent {
docker {
image 'node:18'
}
}
stages {
stage('install') {
steps {
2024-03-29 13:30:41 +03:00
sh 'ls -a'
2024-03-29 10:40:00 +03:00
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
}