mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-16 11:09:33 +02:00
35 lines
808 B
Markdown
35 lines
808 B
Markdown
|
# ${docGenStepName}
|
||
|
|
||
|
## ${docGenDescription}
|
||
|
|
||
|
## Prerequisites
|
||
|
|
||
|
* You have a user for the SAP Cloud Platform Cloud Foundry Environment
|
||
|
* Credentials have been configured in Jenkins with a dedicated Id
|
||
|
|
||
|
## ${docGenParameters}
|
||
|
|
||
|
## ${docGenConfiguration}
|
||
|
|
||
|
## ${docJenkinsPluginDependencies}
|
||
|
|
||
|
## Example
|
||
|
|
||
|
### Space Creation in Cloud Foundry with a simple example
|
||
|
|
||
|
The following example creates an user defined space in a Cloud Foundry.
|
||
|
|
||
|
You can store the credentials in Jenkins and use the `cfCredentialsId` parameter to authenticate to Cloud Foundry.
|
||
|
|
||
|
This can be done accordingly:
|
||
|
|
||
|
```groovy
|
||
|
cloudFoundryCreateSpace(
|
||
|
cfApiEndpoint : 'https://test.server.com',
|
||
|
cfOrg : 'cfOrg',
|
||
|
cfSpace: 'cfSpace', //Name of the cf space to be created
|
||
|
cfCredentialsId: 'cfCredentialsId',
|
||
|
script: this,
|
||
|
)
|
||
|
```
|