microsoft / vsts-ibm-websphere-extension

VSTS Extension to integrate with IBM WebSphere Application Server
Other
8 stars 16 forks source link

Prerequisites section #17

Open valleyofwolves23 opened 5 years ago

valleyofwolves23 commented 5 years ago

Hi,

I am a new learner of WAS and I have been trying to deploy my .WAR build file to WebSphere Application Server through TFS. But your expressions in prerequisites section is little bit perplexing for me.

Would you please give me more details about how to fullfill prerequisites section ?

Thanks in advance,

yacaovsnc commented 5 years ago

What's your specific problem? Have you got a WAS installation where you can manually deploy with wsadmin? If not, I suggest you follow IBM's document and set up WAS first.

https://www.ibm.com/support/knowledgecenter/en/SSEQTP/mapfiles/product_welcome_was.html

valleyofwolves23 commented 5 years ago

Hi, Yes, I do have a WAS installation. My problem is how to get the build agent to reach wsadmin commands ? On the other hand, Is it possible to use this extension on release definition as well ?

yacaovsnc commented 5 years ago

You would need to setup a private build agent on a machine that has wsadmin available on the PATH. None of the hosted agent provide wsadmin tool. I personally have not tried this in a release definitino before, but It should work in as well. .

valleyofwolves23 commented 5 years ago

What do You mean by PATH?

One more thing! on the machine installed WAS, what kind of an agent need to be installed? build or deployment agent

yacaovsnc commented 5 years ago

There is only one agent (https://github.com/Microsoft/azure-pipelines-agent), both build and release uses that agent.

The wsadmin command toolsets must be available on the "Path" variable. It's the variable that tells shell/cmd where to look for executables.

valleyofwolves23 commented 5 years ago

Do you mean Windows environments if not How can I ensure that


From: Yang Cao notifications@github.com Sent: Friday, January 18, 2019 7:08:59 PM To: Microsoft/vsts-ibm-websphere-extension Cc: valleyofwolves23; Author Subject: Re: [Microsoft/vsts-ibm-websphere-extension] Prerequisites section (#17)

There is only one agent (https://github.com/Microsoft/azure-pipelines-agent), both build and release uses that agent.

The wsadmin command toolsets must be available on the "Path" variable. It's the variable that tells shell/cmd where to look for executables.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vsts-ibm-websphere-extension/issues/17#issuecomment-455598897, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX3fMBFuhjcnvV22l-n_5AjwRHIYbqynks5vEfGbgaJpZM4aHtlx.

yacaovsnc commented 5 years ago

Yes, environment variables.

valleyofwolves23 commented 5 years ago

I will try whether it succeeds or not I will type here. Thanks a lot.


From: Yang Cao notifications@github.com Sent: Friday, January 18, 2019 7:45:40 PM To: Microsoft/vsts-ibm-websphere-extension Cc: valleyofwolves23; Author Subject: Re: [Microsoft/vsts-ibm-websphere-extension] Prerequisites section (#17)

Yes, environment variables.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vsts-ibm-websphere-extension/issues/17#issuecomment-455611400, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX3fMGCni42gTAdP-wwicTvZinoDOD3nks5vEfo0gaJpZM4aHtlx.

valleyofwolves23 commented 5 years ago

Hi Again,

Although I set up environment PATH variable and got that variable recognized by the build agent, I encountered an error as follows When I tried to deploy to IBM WebSphere

TypeError: Cannot read property '2' of null

Would you please tell me what could be the reason of this error ?

valleyofwolves23 commented 5 years ago

I have another question also, What do you mean by "You may need to create a profile in your build agent to make the command line work."

On the other hand, When I execute wsadmin -conntype SOAP ....etc, It returns Node name as well.

valleyofwolves23 commented 5 years ago

I have encountered an error message as follows, Would you please help me to get rid of this adversity ?

2019-01-23T09:25:05.7107126Z ##[section]Starting: Deploy to IBM WebSphere 2019-01-23T09:25:05.7263382Z ============================================================================== 2019-01-23T09:25:05.7263382Z Task : IBM WebSphere Deployment 2019-01-23T09:25:05.7263382Z Description : Deploy applications to IBM WebSphere. 2019-01-23T09:25:05.7263382Z Version : 1.114.0 2019-01-23T09:25:05.7263382Z Author : Microsoft Corporation 2019-01-23T09:25:05.7263382Z Help : 2019-01-23T09:25:05.7263382Z ============================================================================== 2019-01-23T09:25:06.6950587Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\IBM\WebSphere\AppServer\bin\wsadmin.bat -host 71.5.22.103 -port 8880 -conntype SOAP -c "AdminConfig.getid('/Deployment:DJavaTFS/');"" 2019-01-23T09:25:07.5075326Z Not found app DJavaTFS, install. 2019-01-23T09:25:07.5075326Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\IBM\WebSphere\AppServer\bin\wsadmin.bat -host 71.5.22.103 -port 8880 -conntype SOAP -c "AdminApp.taskInfo('C:/vstsagent/_work/r4/a/DJavaTFS-Ant-CI/drop/TrialTFSJ/$War File/memphis.war', 'MapWebModToVH');"" 2019-01-23T09:25:07.5075326Z ##[error]TypeError: Cannot read property '2' of null 2019-01-23T09:25:07.5075326Z ##[section]Finishing: Deploy to IBM WebSphere

yacaovsnc commented 5 years ago

Check your inputs, why do you have $War File in your content path? That's a variable.

This task is a thin wrapper around wsadmin tool, and all commands are printed out on console, you could try follow along and see which step fails, then check your inputs to make sure it's doing what you want the task to do.

valleyofwolves23 commented 5 years ago

What do you mean by inputs? User name, conn type etc?

If so, when I type the wsadmin command you mentioned in prerequisities section, It returns node name and server name

On the other hand, is there any other prerequisite except addict bin folder of was to path variable? Or is it true to add Websphere's bin folder to path variable


From: Yang Cao notifications@github.com Sent: Friday, January 25, 2019 8:48:29 PM To: Microsoft/vsts-ibm-websphere-extension Cc: valleyofwolves23; Author Subject: Re: [Microsoft/vsts-ibm-websphere-extension] Prerequisites section (#17)

Check your inputs, why do you have $War File in your content path? That's a variable.

This task is a thin wrapper around wsadmin tool, and all commands are printed out on console, you could try follow along and see which step fails, then check your inputs to make sure it's doing what you want the task to do.

valleyofwolves23 commented 5 years ago

On the other hand, I use ANT within build definition and It generated a folder called $War File and a .WAR file


What do you mean by inputs? User name, conn type etc?

Of so, when I type the wsadmin command you mentioned in prerequisities section, It returns node name and server name

On the other hand, is there any other prerequisite except addict bin folder of was to path variable? Or is it true to add Websphere's bin folder to path variable?


From: Yang Cao notifications@github.com Sent: Friday, January 25, 2019 8:48:29 PM To: Microsoft/vsts-ibm-websphere-extension Cc: valleyofwolves23; Author Subject: Re: [Microsoft/vsts-ibm-websphere-extension] Prerequisites section (#17)

Check your inputs, why do you have $War File in your content path? That's a variable.

This task is a thin wrapper around wsadmin tool, and all commands are printed out on console, you could try follow along and see which step fails, then check your inputs to make sure it's doing what you want the task to do.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vsts-ibm-websphere-extension/issues/17#issuecomment-457656607, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX3fMECt_89Z-I1redV3YqRwC0WX2rdzks5vG0NtgaJpZM4aHtlx.

kamalrajmurugan commented 3 years ago

Hi @yacaovsnc , may be I am late to this conversation but I would like make my point here...

We have WAS 8.5 installed on the Linux agents. when I run this task from my Azure CD pipeline, I see that the command is not working as expected. commad: /opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -username -password -host myhostname -port 5035 -conntype SOAP -c AdminConfig.getid('/Deployment:testapp/'); output: Not found app testapp, install.

But the application testapp is an existing application.. I can see this application via admin console.

PS: I am getting the same output even when I supply incorrect login details in the Service Connection.

Could you please help me to identify the issue.?