Merge pull request 'comment out lint for deploy' (#32) from fix/comment-lint-out into master

Reviewed-on: http://gitea.lan:3000/robbond/pleskSaas/pulls/32
This commit was merged in pull request #32.
This commit is contained in:
2026-03-06 11:20:46 +00:00

24
Jenkinsfile vendored
View File

@@ -20,18 +20,18 @@ pipeline {
}
}
stage('Lint') {
steps {
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)
if (hasLint == 0) {
sh 'npm run lint'
} else {
echo 'No lint script configured; skipping lint stage.'
}
}
}
}
// stage('Lint') {
// steps {
// 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)
// if (hasLint == 0) {
// sh 'npm run lint'
// } else {
// echo 'No lint script configured; skipping lint stage.'
// }
// }
// }
// }
stage('Build application') {
steps {