SAP / jenkins-library

Jenkins shared library for Continuous Delivery pipelines.
https://www.project-piper.io
Apache License 2.0
780 stars 593 forks source link

Additional login parameter for Cloud Foundry #5174

Open CargillRamya opened 1 week ago

CargillRamya commented 1 week ago

I'm trying to create a job on Continuous Integration and Delivery system to deploy application to the BTP. On my local, I'm using the platform user on IAS to access Cloud Foundry space by adding "--origin " parameter to the "cf login" command and it works as expected. I want to provide the same parameter on my CI/CD job.

Below is the same config.yml file

steps: cloudFoundryDeploy: cloudFoundry: collectTelemetryData: false credentialsId: loginparameters: --origin ** apiEndpoint: 'https://api.cf.eu10-004.hana.ondemand.com' org: space: mtaPath: '.mtar'

But this doesn't seem to work. I get an error in Jenkins as mentioned in attachment. Any idea how I can set this parameter?

image
srinikitha09 commented 1 week ago

Hi Ramya,

Are you using technical user to do the deployment? Are you also passing the credentialId ?

Thanks and Regards, Nikitha

CargillRamya commented 6 days ago

Yes I'm using Technical id & passing credentialId. Can you please refer the snippet I had attached.

Thanks, Ramya

CargillRamya commented 14 hours ago

Also, one additional input from my end: We've provided space developer access to the corresponding space and established platform trust with IAS