diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..796c74a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,11 @@ +node { + stage('SCM') { + checkout scm + } + stage('SonarQube Analysis') { + def scannerHome = tool 'SonarScanner'; + withSonarQubeEnv() { + sh "${scannerHome}/bin/sonar-scanner" + } + } +} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..2871088 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=VulnerableWebApp \ No newline at end of file