inco tests scripts and provides the resources to the associated SAP integration flow.
To be used in CICD pipelines to easily test and upload every script used in you SAP iflow.
inco will search a manifest file inco.yaml where it is invoked.
Install groovy
sudo apt-get install groovy
Then verify installation
groovy --version
go install https://github.com/itevia/inco/cmd/inco@latest
or
sudo curl -L https://github.com/itevia/inco/releases/download/v0.0.3/inco-linux-amd64 -o /usr/local/bin/inco && sudo chmod +x /usr/local/bin/inco
Client ID, Client Secret, Token URL, URL can be found in SAP BTP Cockpit -> Instances and Subscriptions -> Instances.
Display or create the Key related to the Service SAP Process Integration Runtime, plan api.

Clicking on key(s), the information will be displayed:

| Field Name | Additional info |
|---|---|
| CPI_CLIENT_ID | |
| CPI_CLIENT_SECRET | |
| CPI_TOKEN_URL | safer - loaded if not in the yaml config (tokenURL) |
| CPI_URL | safer - loaded if not in the yaml config (url) |
Create a inco.yaml file at root of your project
| Field Name | Type | Additional info |
|---|---|---|
| tokenURL | string | Required |
| url | string | Required |
| testPaths | [string] | Required - list of paths to find test scripts to run |
| uploadScripts | [Iflow] | Required - list of UploadScript |
| Field Name | Type | Additional info |
|---|---|---|
| id | string | Required - |
| version | string | Required - active or x.x.x |
| scripts | [Script] | Required - |
| Field Name | Type | Additional info |
|---|---|---|
| id | string | Required - |
| type | string | Required - groovy |
| path | string | Required - path to find script to upload |
Below you can see a manifest inco will use as input.
The manifest must be at project root.
tokenURL: https://<tenant>.authentication.eu10.hana.ondemand.com
url: https://<tenant>.hana.ondemand.com
testPaths:
- tools/runTests.groovy
uploadScripts:
- id: <IFLOW ID>
version: active
scripts:
- id: script1.groovy
type: groovy
path: src/script1.groovy
- id: script2.groovy
type: groovy
path: src/script2.groovy