on 03-03-2016 12:48 AM
Hello
I am trying to create a pre-packaged fiori app using packager with the method explained here
Creating a Prepackaged Fiori App Using the Packager - Mobilizing Fiori - SAP Library
I have downloaded the sources from FES
node C:/SAP/MobileSDK3/KapselSDK/apps/packager/bin/packager --targetDir C:/Kapsel_Projects/CRM --config C:/SAP/MobileSDK3/KapselSDK/apps/packager/appConfig.js --host cegblinux005.cegb.jp --port 8443 --https true --noCache --cleanCache --cleanAppCache --force --client 800
I have created the package
node C:/SAP/MobileSDK3/KapselSDK/apps/packager/bin/packager --targetDir C:/Kapsel_Projects/CRM --config C:/SAP/MobileSDK3/KapselSDK/apps/packager/appConfig.js --cloudHost portal.sapmobilesecure.com createpackage
Input Cloud Build's username XXXXXXXXXXXXXXXXXXXXXX
Input Cloud Build's password:
INFO: Successfully created a Cordova Package on Build Server with ID: 75c115b2fd
844017f401629cefc1c748
==== createpackage OK ====
I have uploaded the package
node C:/SAP/MobileSDK3/KapselSDK/apps/packager/bin/packager --targetDir C:/Kapsel_Projects/CRM --config C:/SAP/MobileSDK3/KapselSDK/apps/packager/appConfig.js --cloudHost portal.sapmobilesecure.com uploadpackage
Command: uploadpackage
Input Cloud Build's username XXXXXXXXXXXXXXXXXXXXXX
Input Cloud Build's password:
Upload source bundle: Response: 200
{"Status":"OK","status":1,"TotalSize":5000000,"IsPartial":"1"}
Upload source bundle: Response: 200
{"Status":"OK","status":1,"TotalSize":10000000,"IsPartial":"1"}
Upload source bundle: Response: 200
{"Status":"OK","status":1,"TotalSize":15000000,"IsPartial":"1"}
Upload source bundle: Response: 200
{"Status":"OK","status":1,"TotalSize":16526651,"IsPartial":"0"}
==== uploadpackage OK ====
My app is on sap mobile secure
I try to build the package
C:\Users\cn-85>node C:/SAP/MobileSDK3/KapselSDK/apps/packager/bin/packager --targetDir C:/Kapsel_Projects/CRM --config C:/SAP/MobileSDK3/KapselSDK/apps/packager/appConfig.js --cloudHost portal.sapmobilesecure.com startbuild
Command: startbuild
Input Cloud Build's username XXXXXXXXXXXXXXXXXXXXXX
Input Cloud Build's password:
==== startbuild ERROR: Unexpected HTTP response from startBuild: 400 ====
I though as my SMP test server is inside my network and not reachable from internet, SAP Mobile Secure could not reach it and the error occurs.
The fioriUrl was "http://192.168.0.162:8080" (As I do not use https)
But I changed the SMP test server IP with internet reachable IP adress (not URL) with port 8080. Same error occurs.
I have set the HCPms with the same app set on SMP and changed the appconfig to reach HCPms: fioriUrl "https://hcpmsadmin-<s-user>trial.dispatcher.hanatrial.ondemand.com/. Same error.
(Each time, I have done the downloadfromfes, createpackage, uploadpackage, startbuild steps)
I have attached a example of my appConfig.js file
Does anyone have a solution ?
Regards
Emmanuel
Hello
The error 400 occurs because there is no signing profile set in Sap Mobile Secure.
I have included the signingid in the appconfig.js, re-imported the fiori apps, created the package, uploaded the package and run startbuild.
But the build has failed.
C:\Kapsel_Projects>node C:/SAP/MobileSDK3/KapselSDK/apps/packager/bin/packager -
-targetDir C:/Kapsel_Projects/CRMSMP --config C:/SAP/MobileSDK3/KapselSDK/apps/p
ackager/appConfig.js --cloudHost portal.sapmobilesecure.com status
Command: status
Input Cloud Build's username XXXXXXXXXXX
Input Cloud Build's password:
INFO: ANDROID: Failed
INFO: IOS: Not Submitted
==== status OK ====
Best regards
Emmanuel
Update :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.