feat: add SonarQube code quality scan stage to pipeline
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -19,6 +19,14 @@ def executeBuildPush() {
|
||||
}
|
||||
}
|
||||
|
||||
def executeScanCodeQuality() {
|
||||
stage('Scan Code Quality') {
|
||||
container('node') {
|
||||
scanCodeQuality(projectKey: 'tictactoe')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def executeBumpChart() {
|
||||
stage('Bump Helm Chart') {
|
||||
container('tools') {
|
||||
@@ -43,26 +51,31 @@ podTemplate(yaml: homelabK8sAgent(withTools: true)) {
|
||||
|
||||
BranchStrategy.featureStrategy(env.BRANCH_NAME) {
|
||||
executeInstallTest()
|
||||
executeScanCodeQuality()
|
||||
executeBuildPush()
|
||||
}
|
||||
|
||||
BranchStrategy.developStrategy(env.BRANCH_NAME) {
|
||||
executeInstallTest()
|
||||
executeScanCodeQuality()
|
||||
executeBuildPush()
|
||||
}
|
||||
|
||||
BranchStrategy.mainStrategy(env.BRANCH_NAME) {
|
||||
executeInstallTest()
|
||||
executeScanCodeQuality()
|
||||
executeBuildPush()
|
||||
}
|
||||
|
||||
BranchStrategy.releaseStrategy(env.BRANCH_NAME) {
|
||||
executeInstallTest()
|
||||
executeScanCodeQuality()
|
||||
executeBuildPush()
|
||||
}
|
||||
|
||||
BranchStrategy.hotfixStrategy(env.BRANCH_NAME) {
|
||||
executeInstallTest()
|
||||
executeScanCodeQuality()
|
||||
executeBuildPush()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user