Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.weigo:NWDI-Core-Plugin:'
}
dependencies {
implementation("com.github.weigo:NWDI-Core-Plugin:")
}
<dependency>
<groupId>com.github.weigo</groupId>
<artifactId>NWDI-Core-Plugin</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.weigo" % "NWDI-Core-Plugin" % ""
:dependencies [[com.github.weigo/NWDI-Core-Plugin ""]]
The NWDI-Core-Plugin integrates the SAP NetWeaver development infrastructure (NWDI) into the Jenkins continuous integration environment. The plugin adds various new capabilities to Jenkins:
A new type of build that synchronizes changed development components (and their dependencies) to a Jenkins workspace and builds those components. The plugin also exposes an object model to be used by other plugins to add functionality with respect to SAP NetWeaver development components to Jenkins.
The plugin is not available through the Jenkins update center yet. To build the plugin you'll need to clone the following GitHub repositories:
See https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingUpEnvironment for inital Jenkins plugin configuration. Esp. settings.xml settings.
git clone git://github.com/weigo/NWDI-config-plugin.git
git clone git://github.com/weigo/NWDI-pom-Plugin.git
git clone git://github.com/weigo/NWDI-Core-Plugin.git
and build the Maven projects:
for d in NWDI-config-plugin NWDI-pom-Plugin NWDI-Core-Plugin;\
do (cd $d; mvn install); done
in NWDI-Core-Plugin/target you'll find the NWDI-Core-Plugin.hpi file which you should upload using the Jenkins update center extended settings view.
With NetWeaver 7.0.x the DI command tools are provided together with NetWeaver developer studio. They are located in the sub folder tools beneath your NWDS installation folder. Copy this folder to your Jenkins server.
NetWeaver versions more recent than 7.0.x do not provide the DI command tools with the NetWeaver developer studio. You'll need to download the software component archive (SCA) DICLIENTS.SCA from SAP market place (enter 'DICLIENTS' as search term).
Unzip the SCA. In the sub folder DEPLOYARCHIVES there is the SDA tc~di~cmd_tools~sda.sda . Extract the ZIP archive di_cmd_tools.zip and copy it to your Jenkins Server. Unpack the archive to a location of your choice.
The batch file/shell script needs to be adapted to use the environment variable JDK_PROPERTY_NAME to build other build variants than default
.
On Unix systems please verify the encoding/line endings of the modified shell scripts. These should not contain DOS line endings. The interpreter to execute the shell scripts won't be found otherwise.
The call to the Java VM (on Windows) should look like this:
call "%JAVA_HOME%\bin\java" -classpath "%startup%" -Xmx256m -Xss20m
-Ddctool.jarrootdir="%NWDITOOLLIB%"
-Ddctool.JDK_PROPERTY_NAME="%JDK_PROPERTY_NAME%" %PARAM_JDK% %APPL% %*
On Unix the VM should be called like this:
"$JAVA_HOME/bin/java" -classpath "$startup" -Xmx256m -Xss20m\
-Ddctool.jarrootdir="$NWDITOOLLIB"\
-Ddctool.JDK_PROPERTY_NAME="$JDK_PROPERTY_NAME" $PARAM_JDK $APPL $*
The call to the Java VM (on Windows) should look like this:
call "%JAVA_HOME%\bin\java" -classpath "%startup%" -Xmx256m -Xss20m
-Dappl.jars="%NWDITOOLLIB%"
-Dappl.classname=com.sap.tc.cetool.DcConsoleApplication
-Ddctool.JDK_PROPERTY_NAME=%JDK_PROPERTY_NAME% %PARAM_JDK% %APPL% %*
On a Unix system the shell script should call the Java VM like this:
"$JAVA_HOME/bin/java" -cp "$startup" -Xmx256m -Xss20m\
-Dappl.jars="$NWDITOOLLIB"\
-Dappl.classname=com.sap.tc.cetool.DcConsoleApplication\
-Ddctool.JDK_PROPERTY_NAME="$JDK_PROPERTY_NAME" $PARAM_JDK $APPL $*