Deploying a SAPUI5/OpenUI5 file structure to SAP NetWeaver ABAP via ADT (ABAP Devbeloper Tools) using a gulp task
npm install gulp-nwabap-ui5uploadergulp-nwabap-ui5uploader is a Gulp plugin which allows a developer to upload SAPUI5/OpenUI5 sources into a SAP NetWeaver ABAP system as part of the Gulp task chain. The behavior is (or should be) the same than it is known from the SAP Web IDE app deployment option "Deploy to SAPUI5 ABAP Repository" or from the "SAPUI5 ABAP Repository Team Provider" available for Eclipse via the "UI Development Toolkit for HTML5".
$ npm install gulp-nwabap-ui5uploader --save-dev
`
Usage
$3
`js
var gulp = require('gulp');
var ui5uploader = require('gulp-nwabap-ui5uploader');
gulp.task('deploy', function() {
return gulp.src('build/**')
.pipe(ui5uploader({
root: 'build/webapp',
conn: {
server: 'http://myserver:8000'
},
auth: {
user: 'username',
pwd: 'password'
},
ui5: {
package: '$TMP',
bspcontainer: 'ZZ_UI5_LOCAL',
bspcontainer_text: 'UI5 upload local objects'
},
}));
});
`
$3
`js
var gulp = require('gulp');
var ui5uploader = require('gulp-nwabap-ui5uploader');
gulp.task('deploy', function() {
return gulp.src('build/**')
.pipe(ui5uploader({
root: 'build/webapp',
conn: {
server: 'http://myserver:8000'
},
auth: {
user: 'username',
pwd: 'password'
},
ui5: {
package: 'ZZ_UI5_REPO',
bspcontainer: 'ZZ_UI5_TRACKED',
bspcontainer_text: 'UI5 upload',
transportno: 'DEVK900000'
},
}));
});
`
API
$3
#### options
##### root
Type: String
Defines the (relative) root of the UI5 web app. This relative path will be stripped in deployment.
##### conn
###### server
Type: String
Defines SAP NetWeaver ABAP server (for instance http://myserver:8000).
#### client
Type: String
Optional parameter to specify the client (transferred as sap-client URL parameter). In case the option is not specified the default client is used if specified.
###### useStrictSSL
Type: Boolean
Default: true
SSL mode handling. In case of self signed certificates the useStrictSSL mode option can be set to false to allow an upload of files.
##### auth
###### user
Type: String
Defines the user which is used for access to the SAP NetWeaver ABAP server. It is not recommended to store the user in the Gulp file. It should be passed as argument.
###### pwd
Type: String
Defines the users password for access to the SAP NetWeaver ABAP server. It is not recommended to store the password in the Gulp file. It should be passed as argument. Do also not store the password as not masked value in a CI server environment. Use plugins to create masked variables (for instance the Mask Passwords Plugin for Jenkins).
##### ui5
###### package
Type: String
Defines the development package in which the BSP container for the UI5 sources is available or should be created.
###### bspcontainer
Type: String
Defines the name of the BSP container used for the storage of the UI5 sources. Length is restricted to 15 characters (exclusive customer specific namespaces, e.g. /YYY/).
###### bspcontainer_text
Type: String
Defines the description of the BSP container.
###### transportno
Type: String
Optional in case options.ui5.package is set to $TMP.
Defines the transport number which logs the changes. For the transport number it would also make sense to pass it via an argument.
###### language
Type: String
Default: EN
Defines the objects original language.
#### calc_appindex
Type: Boolean
Default: false`