jessehouwing / azure-pipelines-tfvc-tasks

Azure Pipelines tasks for Team Foundation Version Control
https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-tfvc-tasks
MIT License
27 stars 18 forks source link

Add task returns "There is no working folder mapping for......" message and does nothing #63

Closed aobubo856 closed 5 years ago

aobubo856 commented 6 years ago

Hi Jesse

I wonder if you can help please?

I am trying to add a zip file extracted as part of a build in the build artifact folder to a visual studio online/tfvc repository/project. I have added the "Add task" to the build process to add the file to the repository but it keeps returning the message "There is no working folder mapping for the targetfolderselected"

I think I am doing something wrong but not sure what to do.

Below is how I have setup the Add task image

Is the "Files to add" meant to specify the destination file and if so is the source of the files to add meant to be specified or is this above what these tasks are meant for?

image

image

Many thanks in advance.

jessehouwing commented 6 years ago

The add task assumes there is a workspace mapping for the folder you're adding to.

In order to achieve your purpose you need to add a folder mapping to the build definitions get sources step. Then copy the files to the sources/whatever you mapped folder and then run add.

In theory you could invoke tf workfold to map the artefacts directory, but my tasks currently don't directly support this.

I've been working on, but not at rapid pace, a bunch of new build tasks for tfvc that would Include a recipe to map&get additional files optionally in a separate workspace.

On Tue, 27 Mar 2018, 23:08 aobubo856, notifications@github.com wrote:

Hi Jesse

I wonder if you can help please?

I am trying to add a zip file extracted as part of a build in the build artifact folder to a visual studio online/tfvc repository/project. I have added the "Add task" to the build process to add the file to the repository but it keeps returning the message "There is no working folder mapping for the targetfolderselected"

I think I am doing something wrong but not sure what to do.

Below is how I have setup the Add task [image: image] https://user-images.githubusercontent.com/35798134/37994730-537b95ac-320a-11e8-8e6d-654cec4d51f3.png

Is the "Files to add" meant to specify the destination file and if so is the source of the files to add meant to be specified or is this above what these tasks are meant for?

[image: image] https://user-images.githubusercontent.com/35798134/37995126-4e9cd0b8-320b-11e8-91d6-fd701db03152.png

[image: image] https://user-images.githubusercontent.com/35798134/37995069-33ea62da-320b-11e8-8694-4e4555b824af.png

Many thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/63, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS1hBU6Hng9-Q-OTUN-ilxtV29oUnks5tiqpogaJpZM4S9pHT .

capuanodanilo commented 6 years ago

Hi aobubo856, I already have identical situation with MSCRM steps. I am only able to copy the solution zip in root folder (working!) but I want move the file zip into specific location. Do you have resolved? Thanks.

jessehouwing commented 6 years ago

Can you share a screen shot of your build folder mapping?

On Tue, 3 Apr 2018, 23:22 Danilo Capuano, notifications@github.com wrote:

Hi aobubo856, I already have identical situation with MSCRM steps. I am only able to copy the solution zip in root folder (working!) but I want move the file zip into specific location. Do you have resolved? Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/63#issuecomment-378403651, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS-I0sJGe6lQFdx6aXC18DtS29CBLks5tk-gcgaJpZM4S9pHT .

capuanodanilo commented 6 years ago

How can I move a file from a location to other? I do not understand what screenshoot I will share...

aobubo856 commented 6 years ago

Hi @jessehouwing , Thank you very much for your response. I managed to resolve it by mapping the folder under get sources as you suggested. The files are added and checked in to source control using the Add & Check In tasks

image

@capuanodanilo I use a copy task to move the zip into the sources directory

image

and as the folder is mapped from above you only need to specify the file path in the add task

image

jessehouwing commented 5 years ago

Fixed