Search This Blog

Sunday 24 May 2020

How do I replace some text inside a text file with te buildId of a build/reease and save it back in the Azure DevOps ?

I would be a millionaire if I could ask a penny for each time that my colleagues ask me this question.
 
I would just run a PowerShell task with something like the below example:

<div class="code">
</div>
a=b+c

$oldValue = 'default-value'
$newValue = '$(Build.BuildId)'
$filePath='path-to-your-file/filename.txt'
(Get-Content $filePath) -replace $oldValue , $newValue | Set-Content $filePath




7 comments:

  1. This method, you could have} a chance to find out|to search out} your perfect sort of slots games to match your fashion. The experts additionally appeared for actual money slot machines with excessive 22Bet RTPs. Online casino rating decided by} casino website features, banking options, sport variety, bonuses, promotions, customer service, and RTP.

    ReplyDelete
  2. Many destinations offer FREE bit by bit tips on the most proficient method to track down an architect, how to enlist an architect, http://sjlarchitect.com/

    ReplyDelete
  3. Vigorous wellness can be improved by basically strolling up stairs. As far as I can tell, I normally approach 12 to 20 stairwells. https://www.accuratestairs.ca/

    ReplyDelete
  4. Endeavor architects, who view the frameworks they create as programming resources, will more often than exclude approvals into their arrangements.
    S.J.Lawrence Architects

    ReplyDelete
  5. I had some water damage on my walls, but thanks to a skilled drywall repair service, you can't even tell anymore! Painting

    ReplyDelete
  6. "Deck water features like fountains or ponds can add a soothing ambiance." hobart deck builders

    ReplyDelete
  7. "A water heater expansion tank is essential to prevent pressure buildup." water heater replacement

    ReplyDelete

Problem with installing "Cloud Foundry" CLI on MacOS!

It's a while I'm working on a government project which will deploy into a government platform as a service that is called GovPaaS.  ...