Closed jonknutson44 closed 4 years ago
Thank you, It does. The task will run on any agent provided to the job. It supports deployment groups and agent pools. If you are getting started with ADO in an on prem environment I recommend you configure deployment groups. If you would rather not have an ADO agent on each server then you can use agent pools.
This tool is great! I do have a quick question. I think i'm doing something wrong. I am getting an error. Can i email you what i'm seeing? jonknutsonhome@yahoo.com
Hello, are you able to help?
Sure thing. Please post your log to this issue.
2020-05-21T14:16:50.1281411Z ##[section]Starting: Deploy Windows Service 2020-05-21T14:16:50.1291420Z ============================================================================== 2020-05-21T14:16:50.1291420Z Task : Windows Service Manager 2020-05-21T14:16:50.1291420Z Description : Deploys a Windows Service to an Agent or a Deployment Group Target using WinRM. 2020-05-21T14:16:50.1291420Z Version : 4.3.5 2020-05-21T14:16:50.1291420Z Author : MDSolutions 2020-05-21T14:16:50.1291420Z Help : More Information 2020-05-21T14:16:50.1291420Z ============================================================================== 2020-05-21T14:16:51.3731752Z Begining deployment to [TestServer] 2020-05-21T14:16:52.9150866Z [TestServer]: Attempting to locate [TestWindowsService] 2020-05-21T14:16:53.0152802Z [TestServer]: Identified [TestWindowsService] installation directory [C:\Program Files (x86)\TFS\TestWindowsService\drop\TestWindowsService\Src\WinServiceHost\bin\Release] 2020-05-21T14:16:53.0162806Z [TestServer]: Clean install set to [True], removing the contents of [C:\Program Files (x86)\TFS\TestWindowsService\drop\TestWindowsService\Src\WinServiceHost\bin\Release] 2020-05-21T14:16:53.0162806Z [TestServer]: Copying [C:\agent_work\r106\a\Event Subscription Service\drop] to [C:\Program Files (x86)\TFS\TestWindowsService\drop\TestWindowsService\Src\WinServiceHost\bin\Release] 2020-05-21T14:16:53.2420358Z ##[error]Cannot find path 'C:\agent_work\r106\a\TestWindowsService\drop' because it does not exist. 2020-05-21T14:16:53.2720324Z ##[section]Finishing: Deploy Windows Service
It appears it is having issues finding the build folder Artifact Path is set correctly $(System.DefaultWorkingDirectory)/TestWindowsService/drop/ and i selected it with the ... button
C:\agent_work\r106\a\Event Subscription Service\drop exists on the TFS Server
Can you please do the following....
If that doesn't work please provide the full log as you did before.
Hello, same basic issue.
2020-05-27T15:14:46.1552383Z ##[section]Starting: Deploy Windows Service 2020-05-27T15:14:46.1703323Z ============================================================================== 2020-05-27T15:14:46.1703323Z Task : Windows Service Manager 2020-05-27T15:14:46.1703323Z Description : Deploys a Windows Service to an Agent or a Deployment Group Target using WinRM. 2020-05-27T15:14:46.1703323Z Version : 4.3.5 2020-05-27T15:14:46.1703323Z Author : MDSolutions 2020-05-27T15:14:46.1703323Z Help : More Information 2020-05-27T15:14:46.1703323Z ============================================================================== 2020-05-27T15:14:47.5678157Z Begining deployment to [TestServer] 2020-05-27T15:14:49.4791331Z [TestServer]: Attempting to locate [TestWindowsService] 2020-05-27T15:14:49.4791331Z [TestServer]: Unable to locate [TestWindowsService] creating a new service 2020-05-27T15:14:49.4791331Z [TestServer]: Identified [TestWindowsService] installation directory [C:\tempjontest] 2020-05-27T15:14:49.4801361Z [TestServer]: Copying [C:\agent_work\r106\a\Event Subscription Service\drop] to [C:\tempjontest] 2020-05-27T15:14:49.7061533Z ##[error]Cannot find path 'C:\agent_work\r106\a\Event Subscription Service\drop' because it does not exist. 2020-05-27T15:14:49.7401499Z ##[section]Finishing: Deploy Windows Service
I can go to TFS and paste in C:\agent_work\r106\a\Event Subscription Service\drop and find the folder location. We are using the same Admin Login and password as our other TFS releases.
Does the following path exist on the destination server? 'C:\agent_work\r106\a\Event Subscription Service\drop'
No, It is only on the TFS Server.
It is trying to copy it from TFS (which it exists) to c:\tempjontest (which exists)
Copying [C:\agent_work\r106\a\Event Subscription Service\drop] to [C:\tempjontest]
Ok, i created C:\agent_work\r106\a\Event Subscription Service\drop on the destination server, however i don't understand why i need it. It is copying from TFS - C:\agent_work\r106\a\Event Subscription Service\drop to destination server [C:\tempjontest]
Added on TestServer C:\agent_work\r106\a\Event Subscription Service\drop\
Nothing copied to C:\agent_work\r106\a\Event Subscription Service\drop\ Nothing copied to C:\tempjontest
2020-05-27T23:03:15.4661521Z ##[section]Starting: Deploy Windows Service 2020-05-27T23:03:15.4801520Z ============================================================================== 2020-05-27T23:03:15.4801520Z Task : Windows Service Manager 2020-05-27T23:03:15.4801520Z Description : Deploys a Windows Service to an Agent or a Deployment Group Target using WinRM. 2020-05-27T23:03:15.4811484Z Version : 4.3.5 2020-05-27T23:03:15.4811484Z Author : MDSolutions 2020-05-27T23:03:15.4811484Z Help : More Information 2020-05-27T23:03:15.4811484Z ============================================================================== 2020-05-27T23:03:16.7636510Z Begining deployment to [TestServer] 2020-05-27T23:03:18.3354949Z [TestServer]: Attempting to locate [TestWindowsService] 2020-05-27T23:03:18.7501975Z [TestServer]: Identified [TestWindowsService] installation directory [C:\tempjontest] 2020-05-27T23:03:18.7501975Z [TestServer]: Clean install set to [True], removing the contents of [C:\tempjontest] 2020-05-27T23:03:18.7511996Z [TestServer]: Copying [C:\agent_work\r106\a\Event Subscription Service\drop] to [C:\tempjontest] 2020-05-27T23:03:18.7511996Z [TestServer]: Starting [TestWindowsService] 2020-05-27T23:03:19.0141439Z ##[error][TestServer%5D: Service responded with [8%5D. See https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/startservice-method-in-class-win32-service for details. 2020-05-27T23:03:19.0533800Z ##[section]Finishing: Deploy Windows Service
can you help?
Not sure where you are lost at this moment but if the files are where they are supposed to be add a copy files step to your pipeline.
I'm at the same place we were before. Files on the TFS server. It is trying to copy it from TFS (which it exists) to c:\tempjontest (which exists) Copying [C:\agent_work\r106\a\Event Subscription Service\drop] to [C:\tempjontest]
1) why do i need C:\agent_work\r106\a\Event Subscription Service\drop on my destination server? it is supposed to copy to C:\tempjontest ?????
Can you help?
@jonknutson44,
You are assuming the task will complete the copy to the destination server. This task was built to be used with deployment groups and can be used with agents when assisted by a copy files task provided by Microsoft. I understand your frustration, let me know if I can assist further after you copy your files to the target server successfully.
Resolved
I like what you guys have done. Does this work for non Azure deployments like to my local network servers?