fix always true condition

This commit is contained in:
Willy Kloucek
2020-12-30 07:21:17 +01:00
parent e58b47e456
commit d87d1f4e82

View File

@@ -373,7 +373,7 @@ def uploadCoverage(ctx):
'from_secret': 'sonar_token',
},
}
if True or ctx.build.event == 'pull_request':
if ctx.build.event == 'pull':
sonar_env.update({
'SONAR_PULL_REQUEST_BASE': '%s' % (ctx.build.target),
'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source),