Environment is not fulfilled

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: ghprb-plugin
    • None
    • Environment:
      os=ubuntu=12.04
      java=openjdk=6b32-1.13.4-4ubuntu0.12.04.2
      jenkins=1.579
      ghprb=1.16-0

      I configured project as documented in https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin
      but I don't see any ghprb-sprecific env vars.
      Especially Jenkins can not checkout ${sha1}, as sha1=""

      Started by user cblp
      Building in workspace /var/lib/jenkins/workspace/project
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url https://github.../cblp/project.git # timeout=10
      Fetching upstream changes from https://github.../cblp/project.git
       > git --version # timeout=10
       > git fetch --tags --progress https://github.../cblp/project.git +refs/pull/*:refs/remotes/origin/pr/*
       > git rev-parse origin/${sha1}^{commit} # timeout=10
       > git rev-parse ${sha1}^{commit} # timeout=10
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
      Finished: FAILURE
      

            Assignee:
            Honza Brázdil
            Reporter:
            Yuriy Syrovetskiy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: