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() {
|
def executeBumpChart() {
|
||||||
stage('Bump Helm Chart') {
|
stage('Bump Helm Chart') {
|
||||||
container('tools') {
|
container('tools') {
|
||||||
@@ -43,26 +51,31 @@ podTemplate(yaml: homelabK8sAgent(withTools: true)) {
|
|||||||
|
|
||||||
BranchStrategy.featureStrategy(env.BRANCH_NAME) {
|
BranchStrategy.featureStrategy(env.BRANCH_NAME) {
|
||||||
executeInstallTest()
|
executeInstallTest()
|
||||||
|
executeScanCodeQuality()
|
||||||
executeBuildPush()
|
executeBuildPush()
|
||||||
}
|
}
|
||||||
|
|
||||||
BranchStrategy.developStrategy(env.BRANCH_NAME) {
|
BranchStrategy.developStrategy(env.BRANCH_NAME) {
|
||||||
executeInstallTest()
|
executeInstallTest()
|
||||||
|
executeScanCodeQuality()
|
||||||
executeBuildPush()
|
executeBuildPush()
|
||||||
}
|
}
|
||||||
|
|
||||||
BranchStrategy.mainStrategy(env.BRANCH_NAME) {
|
BranchStrategy.mainStrategy(env.BRANCH_NAME) {
|
||||||
executeInstallTest()
|
executeInstallTest()
|
||||||
|
executeScanCodeQuality()
|
||||||
executeBuildPush()
|
executeBuildPush()
|
||||||
}
|
}
|
||||||
|
|
||||||
BranchStrategy.releaseStrategy(env.BRANCH_NAME) {
|
BranchStrategy.releaseStrategy(env.BRANCH_NAME) {
|
||||||
executeInstallTest()
|
executeInstallTest()
|
||||||
|
executeScanCodeQuality()
|
||||||
executeBuildPush()
|
executeBuildPush()
|
||||||
}
|
}
|
||||||
|
|
||||||
BranchStrategy.hotfixStrategy(env.BRANCH_NAME) {
|
BranchStrategy.hotfixStrategy(env.BRANCH_NAME) {
|
||||||
executeInstallTest()
|
executeInstallTest()
|
||||||
|
executeScanCodeQuality()
|
||||||
executeBuildPush()
|
executeBuildPush()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user