mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-08 04:21:26 +02:00
20fd6e82ff
* activate MD012 * activate MD012 * fix MD012 findings * fix MD012
2.8 KiB
2.8 KiB
${docGenStepName}
${docGenDescription}
Prerequisites
- On SAP Cloud Platform, Cloud Foundry needs to be enabled on subaccount level. This can be done on the Subaccount Overview page. The subaccount is then mapped to a “Cloud Foundry Organization”, for which you must provide a suitable name during the creation. Have a look at the documentation for more details.
- A (technical) user is required to access the SAP Cloud Platform via the cf CLI. The user needs to be a member of the global account and has to have the Space Developer role. The user and password need to be stored in the Jenkins Credentials Store.
- Please make sure, that there are enough entitlements in the subaccount for the Service Plan, which you want to use for this step.
${docGenParameters}
${docGenConfiguration}
${docJenkinsPluginDependencies}
Example: Configuration in the config.yml
The recommended way to configure your pipeline is via the config.yml file. In this case, calling the step in the Jenkinsfile is reduced to one line:
abapEnvironmentCreateSystem script: this
The configuration values for the system can be passed through the config.yml
file:
steps:
abapEnvironmentCreateSystem:
cfCredentialsId: 'cfCredentialsId'
cfApiEndpoint: 'https://test.server.com'
cfOrg: 'cfOrg'
cfSpace: 'cfSpace'
cfServiceInstance: 'H02_Q_system'
cfService: 'abap'
cfServicePlan: 'standard'
abapSystemAdminEmail: 'user@example.com'
abapSystemDescription: 'ABAP Environment Q System'
abapSystemIsDevelopmentAllowed: true
abapSystemID: 'H02'
abapSystemSizeOfPersistence: 4
abapSystemSizeOfRuntime: 1
Example: Configuration in the Jenkinsfile
The step, including all parameters, can also be called directly from the Jenkinsfile. In the following example, a configuration file is used.
abapEnvironmentCreateSystem (
script: this,
cfCredentialsId: 'cfCredentialsId',
cfApiEndpoint: 'https://test.server.com',
cfOrg: 'cfOrg',
cfSpace: 'cfSpace',
cfServiceManifest: 'manifest.yml'
)
The file manifest.yml
would look like this:
---
create-services:
- name: "H02_Q_system"
broker: "abap"
plan: "standard"
parameters: "{ \"admin_email\" : \"user@example.com\", \"description\" : \"ABAP Environment Q System\", \"is_development_allowed\" : true, \"sapsystemname\" : \"H02\", \"size_of_persistence\" : 4, \"size_of_runtime\" : 1 }"