Skip to content

Commit

Permalink
~ experimental: jenkins pipeline for home server #8
Browse files Browse the repository at this point in the history
  • Loading branch information
kasisoft committed Aug 22, 2024
1 parent 6634fef commit 35a049e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ pipeline {
tools {
nodejs 'node-18.18.2'
}
// environment {
// }
environment {
SONAR_KEY = credentials('sonar-key')
}
stages {
stage('Initialize') {
steps {
Expand Down Expand Up @@ -35,8 +36,8 @@ pipeline {
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', credentialsId: 'sonar-key') {
sh "./node_modules/sonar-scanner/bin/sonar-scanner"
withSonarQubeEnv('sonarqube') {
sh "./node_modules/sonar-scanner/bin/sonar-scanner -Dsonar.login=${SONAR_KEY}"
}
}
}
Expand Down

0 comments on commit 35a049e

Please sign in to comment.