New change

This commit is contained in:
shobikaramasubbarayalu 2022-02-18 13:23:22 -05:00
parent f46ac2219d
commit 37ef792014

24
Jenkinsfile vendored
View File

@ -1,11 +1,21 @@
node { pipeline {
stage('SCM') { agent any
checkout scm stages{
stage('Checkout Code from GitHub Repository'){
steps{
git 'https://github.com/Shobika/Vulnerable-Web-Application.git'
}
} }
stage('SonarQube Analysis') { stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner'; environment {
withSonarQubeEnv() { SCANNER_HOME = tool 'sonarscanner6'
sh "${scannerHome}/bin/sonar-scanner" }
steps {
withSonarQubeEnv('sonar6') {
sh "${SCANNER_HOME}/bin/sonar-scanner"
} }
} }
} }
}
}