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