How to retrieve Git commit id and message in VSTS/TFS build?

后端 未结 3 1391
孤独总比滥情好
孤独总比滥情好 2021-02-10 22:42

I\'m in a CI environment using VSTS and I want to get the commit comment to set him into a text file.

Here are my build step :

The idea is to copy the GIT comm

3条回答
  •  广开言路
    2021-02-10 22:59

    You can create a power-shell script task in the build definition to get the commit comment and write it to a text file via Rest API.

提交回复
热议问题