In this section you will you configure and run predefined continuous integration and delivery (CI/CD) pipelines that automatically build, test, and deploy your code changes to speed up your development and delivery cycles
- In SAP Business Application Studio, find menu on the left and choose CI/CD icon to open CI/CD menu.
- Choose Create a Job to open the Guided Development menu
-
In section Share your Project to Git and choose Share project to Git.
-
Insert your Git repository URL and choose Enable Sharing
- In tile Job Configuration, choose button Configure Job
- Now you can create a new Job. Insert a Job Name e.g. 'RMapp' and choose Continue
- In section Git Credentials ,configure like described in table and choose Next
Entry | Value |
---|---|
Git Repositories | -- Add a Repository - - |
Repository Name | e.g. Riskmanagement |
Git Credentials | -- Add Credentials -- |
Git Credential Name | e.g. rmcredential |
Git Credential Description | e.g. Credential for Riskmanagement app |
Username | Enter your GitHub username |
Token \ Password | Enter your GitHub Token |
- In Section Test, choose Yes to specify the Cloud Foundry space to which the application will be deployed for testing
- Configure like described in table and choose Next
Entry | Value |
---|---|
API Endpoint | select your API Endpoint |
Org Name | select your org name |
Space | select your dev space |
Cloud Foundry Credentials | -- Add Credentials -- |
Cloud Foundry Credential Name | e.g. my-credential |
Cloud Foundry Credential Description | e.g. My Credential |
Username | Enter your CF username |
Token \ Password | Enter your CF token |
- Choose Finish
- Back in screen Guided Development choose Get Webhook Data
- Find entries for Payload URL and Secret and copy them into a text editor of your choice to save them for later.
- Navigate to the GitHub repository you have added to your account in step 5.
- In GitHub, open the Settings menu and find Webhooks tab
- Choose Add Webhook
- In Webhook menu, insert your Payload URL which you have copied in step 10.
- Choose Content type as application/json
- Insert your Secret which you have copied in step 10.
- Choose Add Webhook
-
Open your SAP BTP Account and navigate to your space
-
Find your deployed application in the table and choose link to open
- Find menu for Logs on th left side of your screen and choose Open Kibana Dashboard
- In Elastic dashboard, choose Request and Logs. Find logs for your application listed in table