cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

carlonnheim
Participant
712

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

Accepted Solutions (0)

Answers (1)

Answers (1)

KarelVerbanck
Explorer
0 Likes

Hi @krzys ,

 We have the same requirement in our project.

Any updates on this? 

Thx in advance for the feedback.

kr,
Karel

krzys
Product and Topic Expert
Product and Topic Expert

Good news everyone: This is possible. the feature has been implemented.

Here's the documentation:

https://help.sap.com/docs/continuous-integration-and-delivery/sap-continuous-integration-and-deliver...

And here's a blog explaining an example implementation:

https://community.sap.com/t5/technology-blogs-by-sap/we-made-our-ci-cd-pipelines-more-flexible/ba-p/...

Christoph