New change
This commit is contained in:
parent
f46ac2219d
commit
37ef792014
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
|
@ -1,11 +1,21 @@
|
|||
node {
|
||||
stage('SCM') {
|
||||
checkout scm
|
||||
}
|
||||
stage('SonarQube Analysis') {
|
||||
def scannerHome = tool 'SonarScanner';
|
||||
withSonarQubeEnv() {
|
||||
sh "${scannerHome}/bin/sonar-scanner"
|
||||
pipeline {
|
||||
agent any
|
||||
stages{
|
||||
stage('Checkout Code from GitHub Repository'){
|
||||
steps{
|
||||
git 'https://github.com/Shobika/Vulnerable-Web-Application.git'
|
||||
}
|
||||
}
|
||||
stage('SonarQube Analysis') {
|
||||
environment {
|
||||
SCANNER_HOME = tool 'sonarscanner6'
|
||||
}
|
||||
steps {
|
||||
withSonarQubeEnv('sonar6') {
|
||||
sh "${SCANNER_HOME}/bin/sonar-scanner"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user