This API enables you to perform essential abapGit functions on a remote SAP system.
abapGit API can be used for building your CI tools and integrations.
It allows you to perform the following actions:
- Link the repository
- Pull the repository
- Switch the branch
- Unlink the repository
- Install the sapcli
- Install PyRFC
- Add a configuration file (as documented in the sapcli repository)
- The remote SAP system must have abapGit developer version and abapgit-api-rfc (this repo) installed
ZABAPGIT_API_RFC_LINK
- required
- GIT_REPO_URL
- GIT_USER
- GIT_PASSWORD
- optional
- ABAP_PACKAGE
- BRANCH
- FOLDER_LOGIC
- IGNORE_SUBPACKAGES
- MAIN_LANG_ONLY
- STARTING_FOLDER
example:
sapcli startrfc -c bapi ZABAPGIT_API_RFC_LINK -S=GIT_REPO_URL:https://github.com/abapGit/background_modes -S=GIT_USER:filak-sap -S=GIT_PASSWORD:${MY_GH_TOKEN} -S=ABAP_PACKAGE:'$BACKGROUND_MODES'
ZABAPGIT_API_RFC_PULL
- required
- ABAP_PACKAGE
- GIT_USER
- GIT_PASSWORD
- optional
- CORRNR
example:
sapcli startrfc -c bapi ZABAPGIT_API_RFC_PULL -S=ABAP_PACKAGE:'$BACKGROUND_MODES' -S=GIT_USER:filak-sap -S=GIT_PASSWORD:${MY_GH_TOKEN}
ZABAPGIT_API_RFC_SWITCHBRANCH
- required
- ABAP_PACKAGE
- GIT_USER
- GIT_PASSWORD
- optional
- BRANCH_NAME
example:
sapcli startrfc -c bapi ZABAPGIT_API_RFC_SWITCHBRANCH -S=ABAP_PACKAGE:'$BACKGROUND_MODES' -S=GIT_USER:filak-sap -S=GIT_PASSWORD:${MY_GH_TOKEN} -S=BRANCH_NAME:main
ZABAPGIT_API_RFC_UNLINK
- required
- ABAP_PACKAGE
example:
sapcli startrfc -c bapi ZABAPGIT_API_RFC_UNLINK -S=ABAP_PACKAGE:'$BACKGROUND_MODES'