mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-13 04:37:46 -04:00
@@ -134,11 +134,10 @@ def testing(ctx):
|
||||
'SONAR_TOKEN': {
|
||||
'from_secret': 'sonar_token',
|
||||
},
|
||||
'SONAR_PULL_REQUEST_PROVIDER': 'GitHub' if ctx.build.event == 'pull_request' else None,
|
||||
'SONAR_PULL_REQUEST_REPO': 'owncloud/ocis-thumbnails' if ctx.build.event == 'pull_request' else None,
|
||||
'SONAR_PULL_REQUEST_BASE': 'master' if ctx.build.event == 'pull_request' else None,
|
||||
'SONAR_PULL_REQUEST_BRANCH': ctx.build.source if ctx.build.event == 'pull_request' else None,
|
||||
'SONAR_PULL_REQUEST_KEY': ctx.build.ref if ctx.build.event == 'pull_request' else None,
|
||||
'SONAR_PULL_REQUEST_KEY': ctx.build.ref.replace("refs/pull/", "").split("/")[0] if ctx.build.event == 'pull_request' else None,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -23,11 +23,11 @@ sonar.links.issue=https://github.com/owncloud/ocis-thumbnails/issues
|
||||
sonar.sources=.
|
||||
|
||||
# Pull Requests
|
||||
sonar.pullrequest.provider=${SONAR_PULL_REQUEST_PROVIDER}
|
||||
sonar.pullrequest.github.repository=${SONAR_PULL_REQUEST_REPO}
|
||||
sonar.pullrequest.base=${SONAR_PULL_REQUEST_BASE}
|
||||
sonar.pullrequest.branch=${SONAR_PULL_REQUEST_BRANCH}
|
||||
sonar.pullrequest.key=${SONAR_PULL_REQUEST_KEY}
|
||||
sonar.pullrequest.provider=GitHub
|
||||
sonar.pullrequest.github.repository=owncloud/ocis-thumbnails
|
||||
sonar.pullrequest.base=${env.SONAR_PULL_REQUEST_BASE}
|
||||
sonar.pullrequest.branch=${env.SONAR_PULL_REQUEST_BRANCH}
|
||||
sonar.pullrequest.key=${env.SONAR_PULL_REQUEST_KEY}
|
||||
|
||||
|
||||
# Properties specific to language plugins:
|
||||
|
||||
Reference in New Issue
Block a user