ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsipackagebar Vs mqsicreatebar JAVA API for jenkins

Post new topic  Reply to topic
 mqsipackagebar Vs mqsicreatebar JAVA API for jenkins « View previous topic :: View next topic » 
Author Message
ajaykverma
PostPosted: Tue Oct 18, 2016 1:07 am    Post subject: mqsipackagebar Vs mqsicreatebar JAVA API for jenkins Reply with quote

Newbie

Joined: 26 Sep 2016
Posts: 9

Hi,

We are in process to automate our deployment using Jenkins. We are using Integration JAVA API to execute any mqsi commands.

To build bar currently we are using:

java -jar ./IntegrationAPI.jar com.ibm.broker.config.appdev.FlowRendererBAR -w {workspace dir} -a {barfile name} -k {app id} -y {library dependencies}

which is equivalent to mqsipackagebar.

It is working fine with all application except an issue has been identified that it was not compiling Application while packaging it.

We thought to use mqsicreatebar, so that it can compile also at time of building the bar file, using :

java -jar ./IntegrationAPI.jar com.ibm.broker.config.appdev.FlowRendererBAR -data {workspace dir} -b {barfile name} -a {app id} -l {library dependencies} –cleanBuild

but somehow JAVA API is not taking parameter passed as valid. I debugged and found that JAVA API is still behaving like mqsipackagebar.

Is there any other JAVA API we have to call for mqsicreatebar instead of FlowRenderBAR?
Back to top
View user's profile Send private message
ajaykverma
PostPosted: Tue Oct 18, 2016 10:26 pm    Post subject: Reply with quote

Newbie

Joined: 26 Sep 2016
Posts: 9

Can somebody please reply, we are eagerly waiting for it..
Back to top
View user's profile Send private message
adubya
PostPosted: Tue Oct 18, 2016 10:37 pm    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

I may be wrong but aren't those Java classes just packaging utilities anyway and rely on any compilation/processing steps to have taken place already ?

Why don't you call an ANT script from Jenkins to perform the build ? You can then use mqsicreatebar explicitly in the script.
_________________
Independent Middleware Consultant
andy@knownentity.com
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Oct 19, 2016 4:14 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why do you keep trying to use java instead of mqsicreatebar?

Or for that matter, even java instead of mqsipackagebar?

There's a reason why these aren't documented as "use a java command like this".
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 19, 2016 4:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

adubya wrote:
Why don't you call an ANT script from Jenkins to perform the build ? You can then use mqsicreatebar explicitly in the script.




We automate with Jenkins using this method & it's like falling off a log.

Specifically it's like watching developers fall off a log and hit their heads, but that's because they haven't figured out how Git works yet.

But it's a very straightforward thing to build the mqsi commands into scripts. What's the requirement that's driving you to try and replicate the IBM provided (and supported) commands by using the underlying Java classes?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
ajaykverma
PostPosted: Wed Oct 19, 2016 4:55 am    Post subject: Reply with quote

Newbie

Joined: 26 Sep 2016
Posts: 9

there is client restriction to use Java APIS, because we cant run any mqsi command using mqm user and setting mqsiprofile on server.

So is there any way we can find Java Class to using mqsicreatebar in Integration APIs?

Also we are able to build using Maven..
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 19, 2016 4:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mqsicreatebar, mqsipackagebar and mqsideploy (or iib) don't require running on the IIB server.

They can run on any machine that has access to the iib workspace or network connectivity to the EG.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 19, 2016 5:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
mqsicreatebar, mqsipackagebar and mqsideploy (or iib) don't require running on the IIB server.

They can run on any machine that has access to the iib workspace or network connectivity to the EG.



_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsipackagebar Vs mqsicreatebar JAVA API for jenkins
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.