![](/img/trans.png)
[英]Jenkins pipeline script from SCM: git checkout ERROR: Unable to retrieve commit message
[英]Jenkins pipeline script for getting commit message
我需要在GIT中的特定提交消息上在Jenkins文件中運行一個階段。 我們如何獲得提交消息? env變量是什么?
$ {GIT_COMMIT}-使用scm步驟時的默認變量-git。
假設Jenkins主服務器在localhost:8080上運行,則可以在localhost:8080 / pipeline-syntax / globals#env中記錄可從Jenkins Pipeline中訪問的環境變量的完整列表。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.