Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip
Accepted Solution

Converting apk to bar on jenkins build server

Hello,

 

I somehow got into troubles attempting to configure jenkins build server to convert my apk to bar. I'm using this script for converting which works fine

 

#!/bin/sh

cd /var/lib/blackberry.tools.SDK/bin
./apk2bar ../apk/ /var/lib/android-sdk-linux -t /var/lib/blackberry.tools.SDK/barRelease -a ====PRIVATE=== -cm

 

but when truing to sign bar package, author.p12, barsigner.csk barsigner.db client-RDK-xxxxxx.csj are within 

/var/lib/blackberry.tools.SDK/

 

#!/bin/sh

cd /var/lib/blackberry.tools.SDK/bin
./batchbar-signer ../barRelease /var/lib/blackberry.tools.SDK/author.p12 $PWD $PWD

 I get only 

 

Error: Certificate chain not found for: RDK.  RDK must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.

 

Building under windows with commandline or gui toos with same key works fine, but under jenkins not. What's the problem ?

 

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Converting apk to bar on jenkins build server

Fixed.
New Contributor
Posts: 3
Registered: ‎06-17-2013
My Device: Z10
My Carrier: T-Mobile

Re: Converting apk to bar on jenkins build server

Solution would be nice!
New Contributor
Posts: 3
Registered: ‎07-04-2013
My Device: BB Z10
My Carrier: Verizon

Re: Converting apk to bar on jenkins build server

Come on, guys, if you have resolved the issue, please specify how?

Thanks in advance

New Contributor
Posts: 3
Registered: ‎07-04-2013
My Device: BB Z10
My Carrier: Verizon

Re: Converting apk to bar on jenkins build server

Here's how we managed to fix the issue:
The Jenkins server was executing the whole repackaging and signing stuff on a Windows Server machine. We fixed the issue by running the Jenkins Slave service on this build machine as Administrator.