Author |
Message
|
anonym_prtk_94 |
Posted: Thu Jul 20, 2017 3:11 am Post subject: Automation using WMB7 |
|
|
Newbie
Joined: 20 Jul 2017 Posts: 3
|
Hey,
I have been trying to automate the creation and deployment of BAR files using Jenkins. In the entire process, I am using ANT scripts to call the executables like mqsicreatebar, mqsideployscript, etc. In building BAR file although, I am facing an issue... It ends a failure stating "[b]BIP0962E Error opening workspace in mqsicreatebar[/b]." I tried to run the same ANT file using the CLI as root and it runs perfectly, but via jenkins it fails. I have changed the ownership of my Workspace, BAR File Path, ToolKit Path to jenkins and also given full owner permissions, yet no success. Please Help!
P.S. The OS is Linux |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 21, 2017 12:34 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Is your procedure that is using jenkins also running as 'root'?
Running anything like this as 'root' is a huge great NO, NO, Never, Stop it NOW kind of thing.
I'd break what you are doing down into small chunks and actually work backwards from the end point of deploying the flow.
Finally and before you get slapped around the face with a bit of wet fish WMB7 went out of service several years ago. Time to move to a more recent version perhaps? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
anonym_prtk_94 |
Posted: Fri Jul 21, 2017 1:27 am Post subject: |
|
|
Newbie
Joined: 20 Jul 2017 Posts: 3
|
My Project is broken into chunks and it is only the module of Building the BAR file that is not working.
The toolkit installation is that of version 8.
I only testing the ANT file as root. Jenkins is running it via its own user 'jenkins' |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 21, 2017 3:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What creates the workspace? ANT? Or jenkins?
What happens if the workspoace is owned by root? Could jenkins access files that are owned by root? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
anonym_prtk_94 |
Posted: Wed Jul 26, 2017 2:03 am Post subject: |
|
|
Newbie
Joined: 20 Jul 2017 Posts: 3
|
workspace is owned by jenkins and is created by jenkins |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jul 26, 2017 4:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Can you compare the permissions of the ownerships and permissions of the workspace as created by ant versus jenkins?
Again, if you can run something as root, and you can't as other users, then it is *likely* a permission problem.
You should also review the group membership of the jenkins user - it may be necessary to include it in a specific group.
And try running the ant script individually as the jenkins user. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|