Hi,
I'm trying to setup a CI job in Bamboo which needs proxy configuration.
The mdapi:deploy command works without issues after setting the proxy settings:
npm config set https-proxy ${bamboo.proxyServer}:${bamboo.proxyPort}
npm config set proxy ${bamboo.proxyServer}:${bamboo.proxyPort}
export HTTP_PROXY=${bamboo.proxyServer}:${bamboo.proxyPort}
export HTTPS_PROXY=${bamboo.proxyServer}:${bamboo.proxyPort}
sfdx force:mdapi:deploy -d ./package -u ${bamboo.sfdc.username} --apiversion 46.0 --verbose -w 60
But, the following command to run specified tests:
sfdx force:apex:test:run -n $testList -u ${bamboo.sfdc.username} -w 60 --verbose
Throws the error below:
27-Aug-2019 19:14:03Listening for results
27-Aug-2019 19:14:03ERROR running force:apex:test:run: Unable to invoke async test job: location is not defined
27-Aug-2019 19:14:04ApplicationInsights:CorrelationIdManager [ { Error: connect EINVAL 0.0.1.187:80 - Local (0.0.0.0:0)
27-Aug-2019 19:14:04 at internalConnect (net.js:884:16)
27-Aug-2019 19:14:04 at defaultTriggerAsyncIdScope (internal/async_hooks.js:294:19)
27-Aug-2019 19:14:04 at GetAddrInfoReqWrap.emitLookup [as callback] (net.js:1031:9)
27-Aug-2019 19:14:04 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10)
27-Aug-2019 19:14:04 errno: 'EINVAL',
27-Aug-2019 19:14:04 code: 'EINVAL',
27-Aug-2019 19:14:04 syscall: 'connect',
27-Aug-2019 19:14:04 address: '0.0.1.187',
27-Aug-2019 19:14:04 port: 80 } ]
Any idea why it fails only while trying to execute tests?
Thanks in advance!