Skip to content

Commit

Permalink
ci: Updated post release script to update the nodejs_agent_version on…
Browse files Browse the repository at this point in the history
…ly on staging and us prod, eu will get it via replication now (#1811)
  • Loading branch information
bizob2828 committed Oct 17, 2023
1 parent d3c8d04 commit 317a00a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/update-system-config-pages.js
Expand Up @@ -8,7 +8,6 @@ const { program } = require('commander')
const API_ENDPOINT = '/v2/system_configuration.json'
const STAGING_HOST = 'https://staging-api.newrelic.com'
const PRD_US_HOST = 'https://api.newrelic.com'
const PRD_EU_HOST = 'https://api.eu.newrelic.com'

program.requiredOption('--version <version>', 'New version of node agent')
program.requiredOption('--staging-key <key>', 'New Relic API key for staging')
Expand Down Expand Up @@ -60,9 +59,8 @@ async function updateSystemConfigs() {
const opts = program.opts()
const stagingRequest = fetch(...formatRequest(STAGING_HOST, opts.version, opts.stagingKey))
const prodUsRequest = fetch(...formatRequest(PRD_US_HOST, opts.version, opts.prodKey))
const prodEuRequest = fetch(...formatRequest(PRD_EU_HOST, opts.version, opts.prodKey))
try {
const responses = await Promise.all([stagingRequest, prodUsRequest, prodEuRequest])
const responses = await Promise.all([stagingRequest, prodUsRequest])
responses.forEach(async (response) => {
const res = await response.json()
if (![200, 201].includes(response.status)) {
Expand Down

0 comments on commit 317a00a

Please sign in to comment.