Create Jenkinsfile-1

This commit is contained in:
Zohar 2024-04-06 16:41:31 -04:00 committed by GitHub
parent 516722647a
commit b9c9626626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

15
Jenkinsfile-1 Normal file
View file

@ -0,0 +1,15 @@
pipeline {
agent any
stages {
stage('SonarQube analysis') {
steps {
script {
scannerHome = tool 'SonarQubeScanner';
}
withSonarQubeEnv('My SonarQube Server') {
sh "${scannerHome}/bin/sonar-scanner"
}
}
}
}
}