/sap-dtr-git-bridge

Gradle scripts for bridging SAP DTR to git

Apache License 2.0Apache-2.0

SAP DTR Git Bridge Build Status

Gradle scripts for mirroring SAP Design Time Repository (DTR) code changes into a Git repository.

Goal

  • Gradle has been chosen as scripting language as we can provide all dependencies out of the box (JARs, Gradle) and a JVM should already be installed on the Teamscale server to run the scripts.
  • For now the scripts are no "real" Gradle plugins, but regular Gradle files that can be applied from any Gradle project. The scripts might be converted into a Gradle plugin once a certain marturity level has been reached, for now ease of simple editing (also at customer site) is more important.

Usage

  • From the SAP Support Portal, download the DTR command line client
    • In the Download area, search for "DI CLIENTS"
    • Download the SCA archive that matches your NetWeaver Java installation
    • From the archive, extract deploy archives/tc~di~cmd_tools~sda.sda
    • From that archive, extract di_cmd_tools.zip
    • Extract that zip file to a location of your choice
  • Open build.gradle and add your connection details as well as a data directory, git root directory and the location of the DI command line tools.

Windows:

  • call gradlew.bat updateGit manually or from a scheduled script

Linux:

  • Execute chmod +x file for gradlew and di_cmd/dtr/dtr.sh.
  • Open the di_cmd/dtr/dtr.sh and replace /bin/sh with /bin/bash in the first line.
  • Save the file with unix line ending (has windows line ending by default)
  • call ./gradlew updateGit manually or from a scheduled script