We have a Bamboo plan with the following task
npm run prep-deploy && node deploy.js --destination cys –fullDeploy
The deploy.js file contains this section
var config = {
username: process.env.SAP_USERNAME,
password: process.env.SAP_PASSWORD,
path: './dist',
host: 'https://crmsanproj.svcrm.jlrcloud.com',
base: '/sap/bc/bsp_dev/sap/zcrm_jlr_dev/',
}I have the following variables setup at the plan level
env.SAP_USERNAME
env.SAP_PASSWORD
When we execute the command I get these errors
build 22-Aug-2022 15:10:47 Uploading: ./dist/assets/svg/user-landrover.svg STATUS: 401 TIME: 15:10 47
build 22-Aug-2022 15:10:47 to : https://crmsanproj.svcrm.jlrcloud.com/sap/bc/bsp_dev/sap/zcrm_jlr_dev/assets/svg/user-landrover.svg
build 22-Aug-2022 15:10:47 401: null
build 22-Aug-2022 15:10:47 date: Mon, 22 Aug 2022 15:10:47 GMT
build 22-Aug-2022 15:10:47 server: Apache
build 22-Aug-2022 15:10:47 content-type: text/html; charset=utf-8
build 22-Aug-2022 15:10:47 content-length: 1248
build 22-Aug-2022 15:10:47 sap-system: CYS
build 22-Aug-2022 15:10:47 www-authenticate: Basic realm="SAP NetWeaver Application Server [CYS/100]"
build 22-Aug-2022 15:10:47 sap-server: true
build 22-Aug-2022 15:10:47 sap-perf-fesrec: 2427.000000
build 22-Aug-2022 15:10:47 content-security-policy: frame-ancestors self https://*.liveperson.net https://*.svcrm.jlrcloud.com https://*.svcrm.jlrint.com;
build 22-Aug-2022 15:10:47 connection: close
Obviously 401 is an authentication error. On the server side we are seeing a message indicating an issue with the username, password or client.
The variables env.SAP_USERNAME & env.SAP_PASSWORD describe the username and password and the section “Basic realm="SAP NetWeaver Application Server [CYS/100” suggests we are passing the client correctly.
At present I am stumped and looking for more debug information. For example I want to see if the username and password is passed with the npm command? If there a log or a debug option that would expose this information?