Jenkinsfile hinzugefügt

This commit is contained in:
dev-mkoebis
2026-06-25 16:09:24 +02:00
parent f2ecbe36e0
commit 6d4b5a15fc
2 changed files with 41 additions and 0 deletions

View File

@@ -17,4 +17,8 @@
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
</ItemGroup>
<ItemGroup>
<Folder Include="config\" />
</ItemGroup>
</Project>

37
config/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,37 @@
pipeline
{
agent
{
node
{
label 'Jenkins_Homer'
}
}
stages
{
stage('Build')
{
steps
{
bat "\"${tool 'MSBuild17'}\" ${WORKSPACE}\\MergeCMInpro\\MergeCMInpro.csproj /t:Restore /t:Rebuild /p:Configuration=Release"
}
}
stage('SonarQube')
{
environment
{
scannerHome = tool 'sonar-scanner4.4'
project = 'mergecminpro'
token = 'sqa_07d4e3802cf6283fc38a002e75bd0a5eb158af87'
}
steps
{
withSonarQubeEnv('SonarQube_Homer')
{
bat "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=${project} -Dsonar.login=${token}"
}
}
}
}
}