Author |
Message
|
ajaykverma |
Posted: Tue Oct 18, 2016 1:07 am Post subject: mqsipackagebar Vs mqsicreatebar JAVA API for jenkins |
|
|
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 |
|
 |
ajaykverma |
Posted: Tue Oct 18, 2016 10:26 pm Post subject: |
|
|
Newbie
Joined: 26 Sep 2016 Posts: 9
|
Can somebody please reply, we are eagerly waiting for it.. |
|
Back to top |
|
 |
adubya |
Posted: Tue Oct 18, 2016 10:37 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Oct 19, 2016 4:14 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Wed Oct 19, 2016 4:46 am Post subject: |
|
|
 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 |
|
 |
ajaykverma |
Posted: Wed Oct 19, 2016 4:55 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Oct 19, 2016 4:59 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Wed Oct 19, 2016 5:15 am Post subject: |
|
|
 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 |
|
 |
|