How do I create, write to and deploy a text file containing build and release information in TFS Release Management? -


during deployment in release management client visual studio 2015 i'd

  1. create new text file called release.txt
  2. write file release id, release name, tfs build number , date
  3. deploy file along website

so can go file @ root of website , see version of codebase live.

how go doing this?

write powershell script takes parameters want capture.

turn custom tool takes parameters (arguments be, example: -buildnumber '__build number__').

make new component uses tool.

pass in parameters (e.g. $(buildnumber))

the system variables can pass in are:

  • applicationpath destination path, including component name, component copied.
  • applicationpathroot destination path component copied. default c:\windows\dtldownloads. can over-ride value specify alternative destination path.
  • builddefinition build definition component.
  • buildnumber build number component.
  • environment environment release.
  • packagelocation source path component copied. builds dropped standard server, path points container-id. builds dropped azure, path points storage blob guid.
  • releaseid id of release; assigned release management.
  • releasenumber number of release.
  • stage stage of release.
  • tag tag used group server running action.
  • teamproject team project component.
  • tfsurl tfs url component.

ref: https://msdn.microsoft.com/en-us/library/dn834972(v=vs.120).aspx


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -