Advertisement
Guest User

Untitled

a guest
Sep 18th, 2012
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. $ java -jar jenkins-cli.jar -s http://localhost:9000 install-plugin findbugs
  2. findbugs is neither a valid file, URL, nor a plugin artifact name in the update center
  3. No update center data is retrieved yet from: http://updates.jenkins-ci.org/update-center.json
  4. findbugs looks like a short plugin name. Did you mean 'null'?
  5.  
  6.  
  7. # Specifying a full URL works!
  8. $ java -jar jenkins-cli.jar -s http://localhost:9020 install-plugin http://updates.jenkins-ci.org/download/plugins/AdaptivePlugin/0.1/AdaptivePlugin.hpi
  9.  
  10. # Get the update center ourself
  11. $ wget -O default.js http://updates.jenkins-ci.org/update-center.json
  12.  
  13. # remove first and last line javascript wrapper
  14. sed '1d;$d' default.js > default.json
  15.  
  16. # Now push it to the update URL
  17. curl -X POST -H "Accept: application/json" -d @default.json http://localhost:9020/updateCenter/byId/default/postBack --verbose
  18. * About to connect() to localhost port 9020 (#0)
  19. * Trying ::1... connected
  20. * Connected to localhost (::1) port 9020 (#0)
  21. > POST /updateCenter/byId/default/postBack HTTP/1.1
  22. > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
  23. > Host: localhost:9020
  24. > Accept: application/json
  25. > Content-Length: 253822
  26. > Content-Type: application/x-www-form-urlencoded
  27. > Expect: 100-continue
  28. >
  29. * Done waiting for 100-continue
  30. < HTTP/1.1 200 OK
  31. < Server: Winstone Servlet Engine v0.9.10
  32. < Content-Type: text/plain;charset=UTF-8
  33. < Connection: Close
  34. < Date: Fri, 01 Apr 2011 13:03:41 GMT
  35. < X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
  36.  
  37. # Now it finds the plugin by name
  38. $ java -jar jenkins-cli.jar -s http://localhost:9020 install-plugin findbugs
  39. Installing findbugs from update center
  40.  
  41. $ java -jar jenkins-cli.jar -s http://localhost:9020 safe-restart
  42. hudson.lifecycle.RestartNotSupportedException: Restart is not supported on Mac OS X
  43.  
  44. $ java -jar jenkins-cli.jar -s http://localhost:9020 reload-configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement