SonarQube Step in Jenkinsfile aufgenommen und Extension entfernt
This commit is contained in:
27
WOLWin/config/Jenkinsfile
vendored
Normal file
27
WOLWin/config/Jenkinsfile
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
node {
|
||||||
|
label 'Jenkins_Homer'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
bat "\"${tool 'MSBuild15'}\" ${WORKSPACE}\\WOLWin_nightly\\WOLWin\\WOLWin.csproj /t:Restore /t:Rebuild /p:Configuration=Release"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('SonarQube') {
|
||||||
|
environment {
|
||||||
|
scannerHome = tool 'sonar-scanner4.4'
|
||||||
|
project = 'wolwin_nightly'
|
||||||
|
token = 'sqa_07d4e3802cf6283fc38a002e75bd0a5eb158af87'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
withSonarQubeEnv('SonarQube_Homer') {
|
||||||
|
bat "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=${project} -Dsonar.login=${token}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
agent {
|
|
||||||
node {
|
|
||||||
label 'Jenkins_Homer'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
bat "\"${tool 'MSBuild15'}\" ${WORKSPACE}\\WOLWin_nightly\\WOLWin\\WOLWin.csproj /t:Restore /t:Rebuild /p:Configuration=Release"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user