1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-16 11:09:33 +02:00
sap-jenkins-library/documentation/docs/steps/abapEnvironmentPullGitRepo.md

1.8 KiB

${docGenStepName}

${docGenDescription}

Prerequisites

A SAP Cloud Platform ABAP Environment system is available. On this system, a Communication User, a Communication System and a Communication Arrangement is setup for the Communication Scenario "SAP Cloud Platform ABAP Environment - Software Component Test Integration (SAP_COM_0510)". This can be done manually through the respective applications on the SAP Cloud Platform ABAP Environment System or through creating a service key for the system on cloud foundry with the parameters {"scenario_id": "SAP_COM_0510", "type": "basic"}.

${docGenParameters}

${docGenConfiguration}

${docJenkinsPluginDependencies}

Example

In the first example, the host and the credentialsId of the Communication Arrangement are directly provided.

abapEnvironmentPullGitRepo (
  script: this,
  repositoryName: '/DMO/GIT_REPOSITORY',
  credentialsId: 'abapCredentialsId',
  host: '1234-abcd-5678-efgh-ijk.abap.eu10.hana.ondemand.com'
)

In the second example, the host and credentialsId will be read from the provided cloud foundry service key of the specified service instance.

abapEnvironmentPullGitRepo (
  script: this,
  repositoryName: '/DMO/GIT_REPOSITORY',
  credentialsId: 'cfCredentialsId',
  cloudFoundry: [
      apiEndpoint: 'https://test.server.com',
      org: 'cfOrg',
      space: 'cfSpace',
      serviceInstance: 'cfServiceInstance',
      serviceKey: 'cfServiceKey',
  ]
)