Skip to content

Commit 5f0ab1d

Browse files
committed
Add linting stage to Jenkinsfile
1 parent 6156d36 commit 5f0ab1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Jenkinsfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ pipeline {
2424
}
2525
}
2626
}
27+
stage('Lint') {
28+
steps {
29+
script {
30+
sh 'echo "Linting..."'
31+
sh 'npm install -g eslint'
32+
sh 'eslint --init --max-errors=0 --max-warnings=3 --fix'
33+
}
34+
}
35+
}
2736
stage('Test') {
2837
steps {
2938
script {

0 commit comments

Comments
 (0)