상세 컨텐츠

본문 제목

Jenkins Gerrit Trigger Plugin Env Variables (환경 변수)

Development

by chbae 2023. 4. 20. 03:12

본문

728x90
반응형

Jenkins Gerrit Trigger Plugin Environment Variables: https://github.com/jenkinsci/gerrit-trigger-plugin/blob/65135686c9657091dc000af3ee16a1b698742df7/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerParameters.java

 

GitHub - jenkinsci/gerrit-trigger-plugin

Contribute to jenkinsci/gerrit-trigger-plugin development by creating an account on GitHub.

github.com

 GERRIT_CHANGE_SUBJECT: Parameter name for the commit subject (commit message's 1st line).  
 GERRIT_CHANGE_COMMIT_MESSAGE: Parameter name for the full commit message.  
 GERRIT_BRANCH: Parameter name for the branch.  
 GERRIT_TOPIC: Parameter name for the topic.  
 GERRIT_CHANGE_ID: Parameter name for the change-id.  
 GERRIT_CHANGE_NUMBER: Parameter name for the change number.  
 GERRIT_CHANGE_URL: Parameter name for the URL to the change.  
 GERRIT_PATCHSET_NUMBER: Parameter name for the patch set number.  
 GERRIT_PATCHSET_REVISION: Parameter name for the patch set revision.  
 GERRIT_PROJECT: Parameter name for the Gerrit project name.  
 GERRIT_REFSPEC: Parameter name for the refspec.  
 GERRIT_CHANGE_ABANDONER: The name and email of the abandoner of the change.  
 GERRIT_CHANGE_ABANDONER_NAME: The name of the abandoner of the change.  
 GERRIT_CHANGE_ABANDONER_EMAIL: The email of the abandoner of the change.  
 GERRIT_CHANGE_OWNER: The name and email of the owner of the change.  
 GERRIT_CHANGE_OWNER_NAME: The name of the owner of the change.  
 GERRIT_CHANGE_OWNER_EMAIL: The email of the owner of the change.  
 GERRIT_CHANGE_RESTORER: The name and email of the restorer of the change.  
 GERRIT_CHANGE_RESTORER_NAME: The name of the restorer of the change.  
 GERRIT_CHANGE_RESTORER_EMAIL: The email of the restorer of the change.  
 GERRIT_PATCHSET_UPLOADER: The name and email of the uploader of the patch-set.  
 GERRIT_PATCHSET_UPLOADER_NAME: The name of the uploader of the patch-set.  
 GERRIT_PATCHSET_UPLOADER_EMAIL: The email of the uploader of the patch-set.  
 GERRIT_EVENT_ACCOUNT: The name and email of the person who triggered the event.  
 GERRIT_EVENT_ACCOUNT_NAME: The name of the person who triggered the event.  
 GERRIT_EVENT_ACCOUNT_EMAIL: The email of the person who triggered the event.  
 GERRIT_REFNAME: The refname in a ref-updated event.  
 GERRIT_OLDREV: The old revision in a ref-updated event.  
 GERRIT_NEWREV: The new revision in a ref-updated event.  
 GERRIT_SUBMITTER: The submitter in a ref-updated event.  
 GERRIT_SUBMITTER_NAME: The name of the submitter in a ref-updated event.  
 GERRIT_SUBMITTER_EMAIL: The email of the submitter in a ref-updated event.  
 GERRIT_NAME: The name of the Gerrit instance.  
 GERRIT_HOST: The host of the Gerrit instance.  
 GERRIT_PORT: The port number of the Gerrit instance.  
 GERRIT_SCHEME: The protocol scheme of the Gerrit instance.  
 GERRIT_VERSION: The version of the Gerrit instance.  
 GERRIT_EVENT_HASH: A hashcode of the Gerrit event object.  
 GERRIT_EVENT_TYPE: The type of the event.

 

Example

 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

 

Reference

728x90

'Development' 카테고리의 다른 글

Slack과 Jenkins 연동  (0) 2023.04.20
Jenkins 버전 업그레이드  (0) 2023.04.20
git flow (git branch 전략)  (0) 2023.04.20
Github 관련 유용한 도구 (Travis CI, Coveralls 등)  (0) 2023.04.19
Github Tool (hub)  (0) 2023.04.19

관련글 더보기