简体   繁体   中英

How can I get the name of the current branch in Gitlab CI

I'm setting up Gitlab CI job. I want to get the name of the current branch from a Gitlab CI job. How can I do this?

在GitLab 9.0及更高版本中,您可以在作业中使用预定义的CI_COMMIT_REF_NAME环境变量。

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