comment out lint for deploy
This commit is contained in:
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -20,18 +20,18 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Lint') {
|
// stage('Lint') {
|
||||||
steps {
|
// steps {
|
||||||
script {
|
// script {
|
||||||
def hasLint = sh(script: "node -e \"const fs=require('fs');const p=require('./package.json');process.exit(p?.scripts?.lint?0:1)\"", returnStatus: true)
|
// def hasLint = sh(script: "node -e \"const fs=require('fs');const p=require('./package.json');process.exit(p?.scripts?.lint?0:1)\"", returnStatus: true)
|
||||||
if (hasLint == 0) {
|
// if (hasLint == 0) {
|
||||||
sh 'npm run lint'
|
// sh 'npm run lint'
|
||||||
} else {
|
// } else {
|
||||||
echo 'No lint script configured; skipping lint stage.'
|
// echo 'No lint script configured; skipping lint stage.'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
stage('Build application') {
|
stage('Build application') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Reference in New Issue
Block a user