Original Message:
Sent: Thu June 01, 2023 07:37 AM
From: Boitumelo Mthethwa
Subject: mqsicreatebar for Project with MessageSets ACE 12
Hi Matthias
What I tried was changing the path to a new workspace.
I get the below.
I will have a look into ibmint package
Thanks
16:24:13 mqsicreatebar:16:24:13 [echo] Building Broker Archive file: CustomerAPI20230524.bar 16:24:16 [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: parseArgs { Adding file to compile list: CustomerAPI/.project } 16:24:16 [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: parseArgs { Adding file to compile list: generalFlows/.project } 16:24:16 [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: process { mqsicreatebar arguments: } 16:24:16 [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: process { [-showlocation, -b, C:\BUILDBARFILES_ACE\CustomerAPI\CustomerAPI20230524.bar, -a, CustomerAPI, -l, commonFlows, -deployAsSource, -cleanBuild, -wmbtData] } 16:24:17 [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: process { Disable auto-build before opening the projects } 16:24:17 [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: openWorkspace { } 16:24:17 [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: openWorkspace { List of applications to be processed: CustomerAPI} 16:24:17 [exec] BIP0960E Incorrect "-a", "-l", "-s", "-p", or "-o" argument supplied to mqsicreatebar.16:24:17 [exec] 16:24:17 [exec] Project directory "CustomerAPI" does not exist.16:24:17 [exec] 16:24:17 [exec] 16:24:17 [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: projectToAddorOpen { Required project "CustomerAPI" does not exist on the file system } 16:24:19 [exec] Result: 1
------------------------------
Boitumelo Mthethwa
Original Message:
Sent: Wed May 24, 2023 02:11 AM
From: Matthias Blomme
Subject: mqsicreatebar for Project with MessageSets ACE 12
Hi Boitumelo
The error "Workbench has not been created yet" suggests that your build environment is not setup properly. Mqsicreatebar starts a headless eclipse instance, when working on linux you need to emulate a virtual environment with xfvb-run in order to run mqsicreatebar. Not sure how this is handled by jenkins windows batch commands, but they would need to start a graphical environment and that might be the issue here.
If you are using v11 or v12 try switching to
ibmint package
it is more tailured to be used in build pipelines.
------------------------------
Regards
Matthias Blomme
Original Message:
Sent: Tue May 23, 2023 03:21 AM
From: Boitumelo Mthethwa
Subject: mqsicreatebar for Project with MessageSets ACE 12
Hi Community
I am running a Jenkins job to remotely deploy to an integration server; it is configured to build using "Execute Windows batch command"
Below is the mqsicreatebar command it runs, but it fails to Add messageSet file to BAR Model.
I have tried only with -deployAsSource
then with only -compileOnly, which results in more errors.
and with both -compileOnly and -deployAsSource
Please assist.
[ERROR] { Error adding to BAR Model. fileToAdd: L/msCustomer/msCustomer/messageSet.mset } - java.lang.IllegalStateException: Workbench has not been created yet.13:44:20 [exec] [2023/05/09/13:44:20] [ERROR] { Error adding to BAR Model. fileToAdd: L/CustomerAPI/.project } - com.ibm.etools.mft.bar.model.BrokerArchiveException
[INFO] CommandProcessor: process { mqsicreatebar arguments: } 16:29:48 [exec] [2023/05/19/16:29:48] [INFO] CommandProcessor: process { [-showlocation, -b, C:\BUILDBARFILES_ACE\CustomerAPI\CustomerAPI20230519.bar, -a, CustomerAPI, -l, generalFlows, -compileOnly, -deployAsSource, -cleanBuild, -wmbtData] }
------------------------------
Boitumelo Mthethwa
------------------------------