Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

jpi release --release failing with Net::HTTPServerException: 403 "Forbidden" #100

Open
sunggun-yu opened this issue Mar 20, 2014 · 3 comments

Comments

@sunggun-yu
Copy link
Member

jpi release --release failing with 403 error.
but jpi release for snapshot has succeed.

Environment

  • RVM : rvm 1.25.10
  • JRUBY : jruby-1.7.9
  • JPI : jpi (0.4.0)
  • OSX (Mavericks‎)

Trace

deploying as a release
Generating POM
Net::HTTPServerException: 403 "Forbidden"
      error! at /Users/sunggun/.rvm/rubies/jruby-1.7.9/lib/ruby/1.9/net/http.rb:2640
       value at /Users/sunggun/.rvm/rubies/jruby-1.7.9/lib/ruby/1.9/net/http.rb:2649
check_error at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/jpi-     0.4.0/lib/jenkins/plugin/tools/release.rb:22
         run at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/jpi-0.4.0/lib/jenkins/plugin/tools/release.rb:63
     release at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/jpi-0.4.0/lib/jenkins/plugin/cli.rb:55
         run at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/thor-0.18.1/lib/thor/command.rb:27
invoke_command at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/thor-0.18.1/lib/thor/invocation.rb:120
    dispatch at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/thor-0.18.1/lib/thor.rb:363
       start at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/thor-0.18.1/lib/thor/base.rb:439
      (root) at /Users/sunggun/.rvm/gems/jruby-1.7.9/gems/jpi-0.4.0/bin/jpi:6
        load at org/jruby/RubyKernel.java:1099
      (root) at /Users/sunggun/.rvm/gems/jruby-1.7.9/bin/jpi:1
        eval at org/jruby/RubyKernel.java:1119
      (root) at /Users/sunggun/.rvm/gems/jruby-1.7.9/bin/jruby_executable_hooks:15
@sunggun-yu
Copy link
Member Author

@melezhik
Copy link

+1, running into the same trouble:


melezhik@melezhik-PC:~/GitHub/jenkinsci/chef-plugin$ jpi  release 
bundling...
Using json (1.7.7) 
Using slop (3.0.4) 
Using jenkins-plugin-runtime (0.2.3) 
Using logger (1.2.8) 
Using term-ansicolor (1.1.1) 
Using simple_console (0.0.1) from git://github.com/melezhik/simple_console.git (at master) 
Using bundler (1.3.2) 
Your bundle is complete! It was installed into ./pkg/vendor/gems
chef plugin 0.1.0 built to pkg/chef.hpi
deploying as a snapshot. Run with the --release option to release it for real when you are ready
Generating POM
Uploading pkg/chef.hpi
See http://maven.jenkins-ci.org/content/repositories/snapshots/org/jenkins-ci/ruby-plugins/chef/0.1.0-SNAPSHOT
melezhik@melezhik-PC:~/GitHub/jenkinsci/chef-plugin$ jpi  release --release
bundling...
Using json (1.7.7) 
Using slop (3.0.4) 
Using jenkins-plugin-runtime (0.2.3) 
Using logger (1.2.8) 
Using term-ansicolor (1.1.1) 
Using simple_console (0.0.1) from git://github.com/melezhik/simple_console.git (at master) 
Using bundler (1.3.2) 
Your bundle is complete! It was installed into ./pkg/vendor/gems
chef plugin 0.1.0 built to pkg/chef.hpi
deploying as a release
Generating POM
Net::HTTPServerException: 403 "Forbidden"
       error! at /home/melezhik/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/net/http.rb:2640
        value at /home/melezhik/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/net/http.rb:2649
  check_error at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/jpi-0.4.0/lib/jenkins/plugin/tools/release.rb:22
          run at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/jpi-0.4.0/lib/jenkins/plugin/tools/release.rb:63
      release at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/jpi-0.4.0/lib/jenkins/plugin/cli.rb:55
     __send__ at org/jruby/RubyBasicObject.java:1677
          run at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/thor-0.17.0/lib/thor/task.rb:27
  invoke_task at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/thor-0.17.0/lib/thor/invocation.rb:120
     dispatch at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/thor-0.17.0/lib/thor.rb:344
        start at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/thor-0.17.0/lib/thor/base.rb:434
       (root) at /home/melezhik/.rvm/gems/jruby-1.7.3/gems/jpi-0.4.0/bin/jpi:6
         load at org/jruby/RubyKernel.java:1046
       (root) at /home/melezhik/.rvm/gems/jruby-1.7.3/bin/jpi:1
         eval at org/jruby/RubyKernel.java:1066
       (root) at /home/melezhik/.rvm/gems/jruby-1.7.3/bin/ruby_noexec_wrapper:14

@alvarolorentedev
Copy link
Member

I have this problem when running a second time, can anyone confirm. anyway the release actually is not releasing at all. Have anyone found a workaround to upload the hpi file?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants