зеркало из https://github.com/mozilla/treeherder.git
Bug 1076737 - Correct New Relic deployment URL and attribute name
The current values were copied from another project's deploy script, but they are not working - so let's use what the latest New Relic docs say we should use.
This commit is contained in:
Родитель
45cee6856e
Коммит
96470f8d19
|
@ -116,11 +116,11 @@ def ping_newrelic(ctx):
|
|||
print 'Post deployment to New Relic'
|
||||
data = urllib.urlencode({
|
||||
'deployment[revision]': settings.UPDATE_REF,
|
||||
'deployment[app_id]': settings.NEW_RELIC_APP_ID
|
||||
'deployment[application_id]': settings.NEW_RELIC_APP_ID
|
||||
})
|
||||
headers = {'x-api-key': settings.NEW_RELIC_API_KEY}
|
||||
try:
|
||||
request = urllib2.Request('https://rpm.newrelic.com/deployments.xml',
|
||||
request = urllib2.Request('https://api.newrelic.com/deployments.xml',
|
||||
data, headers)
|
||||
urllib2.urlopen(request)
|
||||
except urllib2.URLError as exp:
|
||||
|
|
Загрузка…
Ссылка в новой задаче