我正在使用Gerrit触发插件启动Jenkins构建,但是还没有找到记录所有环境变量的好地方。是否存在此类文档?
首先,我有一个Jenkins构建shell脚本,GERRIT以以下名称转储所有环境变量:
GERRIT
GERRIT_PATCHSET_UPLOADER=\"Alan Thompson\" <theEmail@gmail.com> GERRIT_PATCHSET_REVISION=eec3b0b65fcdf30872befa2e9ace06e96cd487b4 GERRIT_CHANGE_ID=Ieec3b0b65fcdf30872befa2e9ace06e96cd487b4 GERRIT_PATCHSET_NUMBER=1 GERRIT_EVENT_ACCOUNT_EMAIL=theEmail@gmail.com GERRIT_CHANGE_NUMBER=8 GERRIT_CHANGE_OWNER=\"Alan Thompson\" <theEmail@gmail.com> GERRIT_REFSPEC=refs/changes/08/8/1 GERRIT_EVENT_TYPE=change-merged GERRIT_EVENT_ACCOUNT=\"Alan Thompson\" <theEmail@gmail.com> GERRIT_CHANGE_SUBJECT=toast: this is great with coffee GERRIT_CHANGE_OWNER_NAME=Alan Thompson GERRIT_PROJECT=kitchen GERRIT_EVENT_HASH=-1357519550 GERRIT_BRANCH=master GERRIT_CHANGE_OWNER_EMAIL=theEmail@gmail.com GERRIT_PATCHSET_UPLOADER_EMAIL=theEmail@gmail.com GERRIT_CHANGE_URL=http://localhost/8 GERRIT_PATCHSET_UPLOADER_NAME=Alan Thompson GERRIT_EVENT_ACCOUNT_NAME=Alan Thompson