Maks created ZEPPELIN-2142:
------------------------------

             Summary: Get Author of COMMIT from COMMIT (Jenkins job: 
zeppelin-pull-request)
                 Key: ZEPPELIN-2142
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2142
             Project: Zeppelin
          Issue Type: Improvement
          Components: CI-infra
            Reporter: Maks
            Priority: Minor


We have repository: for ex. https://github.com/SomeRep/zeppelin
My github link https://github.com/OtherRep (i have permissions to 
https://github.com/SomeRep/zeppelin)

my local git config:
user.name=SomeRep
user.email=em...@email.com

1) commit to https://github.com/SomeRep/zeppelin (starts build in travis-ci 
https://travis-ci.org/SomeRep/zeppelin/builds)
2) Create pull request from https://github.com/SomeRep/zeppelin
3) jenkins job zeppelin-pull-request failed because Author is taken from pull 
request
(jenkins log)
++ echo https://github.com/apache/zeppelin/pull/<number> 
https://github.com/OtherRep
++ sed 's/.*[/]\(.*\)$/\1/g'
+ AUTHOR=OtherRep
++ echo https://github.com/apache/zeppelin/pull/<number>  
https://github.com/OtherRep
++ awk '{print $1}'
++ sed 's/.*[/]\(.*\)$/\1/g'
+ PR=<number>
++ git log -n 1
++ grep '^Merge:'
++ awk '{print $3}'
+ COMMIT=<commit>





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to