Git Product home page Git Product logo

Comments (6)

colindembovsky avatar colindembovsky commented on June 1, 2024

Hi @perp1exed - I've not tried replacing tokens on a UNC path. I'd suggest that you copy the file to the build agent (use File copy task), do the replacement and then copy it to the target machine.

from cols-agent-tasks.

perp1exed avatar perp1exed commented on June 1, 2024

The UNC path is pointing to the folder on the build agent (which is the tfs
server).

I am using the TokenReplace task in the Release definition. Is it safe to
say that it is running on the build agent? In which case specifying the
local directory path should work?

Cheers,

Ks

On Friday, 9 September 2016, Colin Dembovsky [email protected]
wrote:

Hi @perp1exed https://github.com/perp1exed - I've not tried replacing
tokens on a UNC path. I'd suggest that you copy the file to the build agent
(use File copy task), do the replacement and then copy it to the target
machine.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/colindembovsky/cols-agent-tasks/issues/28#issuecomment-246035612,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVFNa5ihrB3CdF0bNpagLihuoOthn2Teks5qocZBgaJpZM4J5XCn
.

regards,

Khurram

from cols-agent-tasks.

colindembovsky avatar colindembovsky commented on June 1, 2024

The build runs on the machine that the build agent is installed on - so if you can access that folder via a regular path (like c:\builddrops...\web.config) then that should work!

from cols-agent-tasks.

perp1exed avatar perp1exed commented on June 1, 2024

So the pre-defined variables do not work right?

For example, $(Build.StagingDirectory)\drop does not work.

I am trying to avoid having to explicitly set the source folder.

Thanks,

KS

from cols-agent-tasks.

ahakala avatar ahakala commented on June 1, 2024

I found a similar issue. It seems that if you point the task directly at a file it will not work but if you point the task at the folder which contains the file and then specify "*.config" (or whatever the file type is) the task will complete.

from cols-agent-tasks.

colindembovsky avatar colindembovsky commented on June 1, 2024

Hi @perp1exed - I'm still not following your problem clearly. Can you send a screenshot of your task config so that I can see how you're configuring it?

from cols-agent-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.