简体   繁体   中英

Jenkins pipeline script for getting commit message

I need to run a stage in Jenkins file on a particular commit message in GIT. How we can get the commit message ? what is the env variable used?

$ {GIT_COMMIT}-使用scm步骤时的默认变量-git。

假设Jenkins主服务器在localhost:8080上运行,则可以在localhost:8080 / pipeline-syntax / globals#env中记录可从Jenkins Pipeline中访问的环境变量的完整列表。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM