You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh 'export PATH="$PATH:/var/lib/jenkins/.dotnet/tools"'
sh '/usr/bin/dotnet sonarscanner begin /k:"april24_sampleapp" /o:"april24" /d:sonar.login="d51b77568f7a262527616a45a5c89ccde1323a29" /d:sonar.host.url="https://sonarcloud.io"'
sh '/usr/bin/dotnet build SampleApp.sln'
sh '/usr/bin/dotnet test SampleApp.sln'
sh '/usr/bin/dotnet sonarscanner end /d:sonar.login="d51b77568f7a262527616a45a5c89ccde1323a29"'
}
}
}
stage("Quality Gate") {
steps {
timeout(time: 1, unit: 'HOURS') {
// Parameter indicates whether to set pipeline to UNSTABLE if Quality Gate fails