jenkins plugin을 jenkins cli 실패가 발생할 수 있다. 



$ java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin cmd

cmd is neither a valid file, URL, nor a plugin artifact name in the update center

No update center data is retrieved yet from: http://updates.jenkins-ci.org/update-center.json

cmd looks like a short plugin name. Did you mean 'null'?



그럴 때는 아래 링크를 참조해서 설치한다. 

http://pastebin.com/69niu55N 

pastebin 이라 언제든지 없어질 수 있는지라. 기록을 남둠. l
( 1.461을 사용중인데..ist-plugins command가 사라졌다. )

$ java -jar jenkins-cli.jar -s http://localhost:9000 install-plugin findbugs
findbugs is neither a valid file, URL, nor a plugin artifact name in the update center
No update center data is retrieved yet from: http://updates.jenkins-ci.org/update-center.json
findbugs looks like a short plugin name. Did you mean 'null'?
 
 
# Specifying a full URL works!
$  java -jar jenkins-cli.jar -s http://localhost:9020 install-plugin http://updates.jenkins-ci.org/download/plugins/AdaptivePlugin/0.1/AdaptivePlugin.hpi
 
# Get the update center ourself
$ wget -O default.js http://updates.jenkins-ci.org/update-center.json
 
# remove first and last line javascript wrapper
sed '1d;$d' default.js > default.json
 
# Now push it to the update URL
curl -X POST -H "Accept: application/json" -d @default.json http://localhost:9020/updateCenter/byId/default/postBack --verbose
* About to connect() to localhost port 9020 (#0)
*   Trying ::1... connected
* Connected to localhost (::1) port 9020 (#0)
> POST /updateCenter/byId/default/postBack HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: localhost:9020
> Accept: application/json
> Content-Length: 253822
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
* Done waiting for 100-continue
< HTTP/1.1 200 OK
< Server: Winstone Servlet Engine v0.9.10
< Content-Type: text/plain;charset=UTF-8
< Connection: Close
< Date: Fri, 01 Apr 2011 13:03:41 GMT
< X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
 
# Now it finds the plugin by name
$ java -jar jenkins-cli.jar -s http://localhost:9020 install-plugin findbugs
Installing findbugs from update center
 
$  java -jar jenkins-cli.jar -s http://localhost:9020 safe-restart
hudson.lifecycle.RestartNotSupportedException: Restart is not supported on Mac OS X
 
$ java -jar jenkins-cli.jar -s http://localhost:9020 reload-configuration




Posted by '김용환'
,