mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-16 11:09:33 +02:00
1.1 KiB
1.1 KiB
${docGenStepName}
${docGenDescription}
Prerequisites
- This step is for creating a Service Key for an existing Service in Cloud Foundry.
- Cloud Foundry API endpoint, organization, space, user and service instance are available
- Credentials have been configured in Jenkins with a dedicated Id
- Additionally you can set the optional serviceKeyConfig flag to configure the Service Key creation with your respective JSON configuration.
${docGenParameters}
${docGenConfiguration}
${docJenkinsPluginDependencies}
Example
The following example creates a service key named "myServiceKey" for the service instance "myServiceInstance" in the provided cloud foundry organization and space. For the service key creation, the serviceKeyConfig is used.
cloudFoundryCreateServiceKey(
script: this,
cloudFoundry: [
apiEndpoint: 'https://test.server.com',
credentialsId: 'cfCredentialsId',
org: 'cfOrg',
space: 'cfSpace',
serviceInstance: 'myServiceInstance',
serviceKeyName: 'myServiceKey',
serviceKeyConfig: '{ \"key\" : \"value\" }'
])