Skip to Content
1
Jun 26, 2022 at 11:12 PM

Accessing a "Secret Text" credential from the build scripts of a CAP Project on the CI/CD service

61 Views

Hi,

The SAP Continuous Integration and Delivery service supports the creation of a "Secret Text" credential in the configuration of jobs. But it is not clear from documentation how to access those keys in the build of a CAP project.

The particular use case is that we have a dependency to private npm packages in the project. I hence need to feed the projects .npmrc file with an access token (which I of course cannot check into the repo). We have tried dumping the environment variables etc. in the build but cannot find the "Secret Text" we have maintained anywhere.

Can we get some clarity on this please?

Thanks!

//Carl