Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-2142

Get Author of COMMIT from COMMIT (Jenkins job: zeppelin-pull-request)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • None
    • None
    • CI-infra
    • None

    Description

      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=email@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>
      + python ./travis_check.py OtherRep <commit>
      [2017-02-21 07:32:31] Author: OtherRep, commit: <commit>
      [2017-02-21 07:32:31] --------------------------------
      [2017-02-21 07:32:36] Get build status ...
      [2017-02-21 07:32:37] Can't find build for commit= 5c322d4

      Attachments

        Activity

          People

            Unassigned Unassigned
            masyan Maksim Reshetov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: