ci: 添加 Lint 阶段到 Jenkinsfile #2

Merged
HoshinoSuzumi merged 1 commits from ci/add-jenkins-file into main 2026-02-09 13:49:45 +08:00

13
Jenkinsfile vendored
View File

@@ -20,7 +20,20 @@ pipeline {
} }
} }
stage('Lint') {
steps {
sh '''
corepack enable
pnpm install --registry=https://registry.npmmirror.com
pnpm run lint
'''
}
}
stage('Build') { stage('Build') {
when {
expression { currentBuild.currentResult == 'SUCCESS' }
}
steps { steps {
sh ''' sh '''
corepack enable corepack enable