- Install the plugin using the
Jenkins Plugin Manager
and restart Jenkins. - Go to the global configuration page (
Manage Jenkins > Configure System
). - Find the AbapCi Plugin Section and specify and the
connection info
for your ABAP development system. - Create a new
Jenkins job
for an ABAP Package of your ABAP Dev System (freestyle project or pipeline project)
This plugin provides the foundation to integrate an ABAP on premise system into Jenkins.
Currently there are two Continuous Integration features supported:
- running ATC checks
- running Unit tests
The plugin can be used as a build step in a free-style project or also within a pipeline project.
In the Jenkins global configurations the connection info for the ABAP development system has to be set. In the below example this is shown for an test instance on an AWS account. The following parameters have to be specified:
- ABAP Servername: The name of the SAP server
- Port of ABAP Server: The used port - in the most cases this should be the standard port 8000
- Protocol: here you have to specifiy if http or https is used
- Client: the client number of the ABAP system
- Username: the username of a SAP user to connect to the ABAP development system
- Password: the password of a SAP password to connect to the ABAP development system
Sample configuration to an ABAP development system instance - Jenkins and ABAP system running in the AWS cloud
If you choose to integrate the plugin into a freestyle-project you can do this by using the plugin within a build step. Simply add the AbapCi Plugin as build step and specify the ABAP package and the features you want to perform on the configured package.
Sample free-style project for the ABAP package $TMP - on each run ATC checks and Unit tests will be performed
The AbapCi Plugin is pipline compatible. The script to integrate an ABAP system into a pipeline is shown below. In this sample two stages will be performed, first for the package $TMP the Unit tests are run, then the ATC checks are run. The notation to call the plugin is:
abapCi sapPackagename: 'ABAP_PACKAGENAME' [, runUnitTests: (true|false)] [, runAtcChecks: (true|false)]
A great help to get the right notation is to use the Pipeline Syntax
button which is located directly below the pipeline script box.
Sample pipeline project for the ABAP package $TMP - on each run ATC checks and Unit tests will be performed
Below you can see a sample output of a Jenkins pipeline for the above configured ABAP package.
Sample pipeline output for the ABAP package $TMP