Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional login parameter for Cloud Foundry #5174

Open
CargillRamya opened this issue Nov 14, 2024 · 3 comments
Open

Additional login parameter for Cloud Foundry #5174

CargillRamya opened this issue Nov 14, 2024 · 3 comments

Comments

@CargillRamya
Copy link

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
Copy link
Contributor

Hi Ramya,

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

Thanks and Regards,
Nikitha

@CargillRamya
Copy link
Author

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

Thanks,
Ramya

@CargillRamya
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants