1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-06-02 23:17:33 +02:00
sap-jenkins-library/documentation/docs/steps/cloudFoundryCreateServiceKey.md
Daniel Mieg fa75c1ce1c Improve documentation for cloudFoundryCreateServiceKey (#1059)
* Improve documentation for cfCreateServiceKey
* Add service instance to prerequisites
2019-12-16 20:44:15 +00:00

887 B

${docGenStepName}

${docGenDescription}

Prerequisites

  • Cloud Foundry API endpoint, organization, space, user and service instance are available
  • Credentials have been configured in Jenkins with a dedicated Id

${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',
      serviceKey: 'myServiceKey',
      serviceKeyConfig: '{ \"key\" : \"value\" }'
  ])