ci: 添加 Lint 阶段到 Jenkinsfile
This commit was merged in pull request #2.
This commit is contained in:
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') {
|
stage('Build') {
|
||||||
|
when {
|
||||||
|
expression { currentBuild.currentResult == 'SUCCESS' }
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
corepack enable
|
corepack enable
|
||||||
|
|||||||
Reference in New Issue
Block a user