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