ci: 添加 Lint 阶段到 Jenkinsfile #2
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -20,7 +20,20 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Lint') {
|
||||
steps {
|
||||
sh '''
|
||||
corepack enable
|
||||
pnpm install --registry=https://registry.npmmirror.com
|
||||
pnpm run lint
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
when {
|
||||
expression { currentBuild.currentResult == 'SUCCESS' }
|
||||
}
|
||||
steps {
|
||||
sh '''
|
||||
corepack enable
|
||||
|
||||
Reference in New Issue
Block a user