Jenkins -TFS Get ChangeSet Number

   The new request for CI Deploy.Which needs to get changeset number for after process.At first, I thought the only way is executing window batch command.

tf changeset /latest /noprompt

After referencing the help of TFS plugin that I just know it will get the variable of the TFS after a checkout.As below photo.

Build Testing

1.Window Batch Command Showing ChangeSet Number
%TFS_CHANGESET%

2.Sending Http Request
$TFS_CHANGESET

3.Build Result

Reference

Popular posts from this blog

VS2017-Build fail-FindDependenciesOfExternallyResolvedReferences

SQL Server pass parameter to Procedure

IIS Block IP Setting