Skip to content

Commit

Permalink
~ experimental: jenkins pipeline for home server #6
Browse files Browse the repository at this point in the history
  • Loading branch information
kasisoft committed Aug 22, 2024
1 parent bcf300a commit cc22756
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ pipeline {
sh 'pnpm test'
}
}
// stage('SonarQube Analysis') {
// steps {
stage('SonarQube Analysis') {
steps {
// properties such as sonar.host.url and sonar.login are configured in the m2 settings.xml for this profile
// sh 'mvn clean verify -Psonar -Dsonar.projectKey=kcl'
// }
// }
withSonarQubeEnv('sonarqube') {
sh "./node_modules/sonar-scanner/bin/sonar-scanner"
}
}
}
}
}

15 changes: 15 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sonar.projectKey=remark-imagetools
sonar.projectName=remark-imagetools
sonar.projectVersion=0.1.3

# Path to the source files
sonar.sources=src

# Specify the language if needed (e.g., JavaScript)
sonar.language=ts

# Optional: Add coverage information
# sonar.javascript.lcov.reportPaths=coverage/lcov.info

# Encoding of the source files
sonar.sourceEncoding=UTF-8

0 comments on commit cc22756

Please sign in to comment.