Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33252

undefined method `request_uri'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • gitlab-hook-plugin
    • Jenkins 1.650
      Gitlab Hook Plugin 1.4.1.1 and 1.4.0 (reverted to this and problem still appears)

      Hello,
      We're having the following problem. Please let me know what else I can provide to get to the bottom of what is happening here. Thanks!

      Console output from job:

      Started by user Blaine, Jeff
      [EnvInject] - Loading node environment variables.
      Building remotely on jenkins-rhel6-slave (8gb 4core rhel6) in workspace /var/lib/jenkins/workspace/pytika-test
      [WS-CLEANUP] Deleting project workspace...
      [WS-CLEANUP] Done
      Cloning the remote Git repository
      Cloning repository git@gitlab.our.org:cjk-apollo/pytika.git
       > /usr/rcf/bin/git init /var/lib/jenkins/workspace/pytika-test # timeout=10
      Fetching upstream changes from git@gitlab.our.org:cjk-apollo/pytika.git
       > /usr/rcf/bin/git --version # timeout=10
      using GIT_SSH to set credentials jblaine-Jenkins
       > /usr/rcf/bin/git -c core.askpass=true fetch --tags --progress git@gitlab.our.org:cjk-apollo/pytika.git +refs/heads/*:refs/remotes/origin/*
       > /usr/rcf/bin/git config remote.origin.url git@gitlab.our.org:cjk-apollo/pytika.git # timeout=10
       > /usr/rcf/bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
       > /usr/rcf/bin/git config remote.origin.url git@gitlab.our.org:cjk-apollo/pytika.git # timeout=10
      Fetching upstream changes from git@gitlab.our.org:cjk-apollo/pytika.git
      using GIT_SSH to set credentials jblaine-Jenkins
       > /usr/rcf/bin/git -c core.askpass=true fetch --tags --progress git@gitlab.our.org:cjk-apollo/pytika.git +refs/heads/*:refs/remotes/origin/*
       > /usr/rcf/bin/git rev-parse refs/remotes/origin/develop^{commit} # timeout=10
       > /usr/rcf/bin/git rev-parse refs/remotes/origin/origin/develop^{commit} # timeout=10
      Checking out Revision 6b7043fd37a1bc4adc39b8989f5d1b57a4cf3605 (refs/remotes/origin/develop)
       > /usr/rcf/bin/git config core.sparsecheckout # timeout=10
       > /usr/rcf/bin/git checkout -f 6b7043fd37a1bc4adc39b8989f5d1b57a4cf3605
      > /usr/rcf/bin/git rev-list 6b7043fd37a1bc4adc39b8989f5d1b57a4cf3605 # timeout=10
      ERROR: undefined method `request_uri' for #<URI::Generic:0x5ba74f31 URL:/api/v3/projects/search/pytika> (NoMethodError)
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/lib/gitlab/client.rb:92:in `do_request'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/lib/gitlab/client.rb:78:in `repo_id'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/lib/gitlab/client.rb:18:in `name='
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/gitlab_notifier.rb:21:in `prebuild'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/tasks/build_step_proxy.rb:8:in `prebuild'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/tasks/build_step_proxy.rb:22:in `boolean_result'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/tasks/build_step_proxy.rb:7:in `prebuild'
      
      [pytika-test] $ git log -1 --oneline --format=%P
      ERROR: undefined method `request_uri' for #<URI::Generic:0x250d0d0a> (NoMethodError)
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/lib/gitlab/client.rb:89:in `do_request'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/lib/gitlab/client.rb:61:in `post_commit_note'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/lib/gitlab/client.rb:44:in `post_status'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/models/gitlab_notifier.rb:34:in `perform'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/tasks/build_step_proxy.rb:14:in `perform'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/tasks/build_step_proxy.rb:22:in `boolean_result'
      /var/lib/jenkins/plugins/gitlab-hook/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/tasks/build_step_proxy.rb:13:in `perform'
      

            javiplx Javier Palacios
            jblaine Jeff Blaine
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: