Jenkins supports ssh authentication in CLI.
Below is a command to verify that I am authenticated:
1 2java -jar jenkins-cli.jar -s http://myserver/jenkins who-am-i 3 4 Authenticated as: myuser 5 Authorities: 6 authenticated
However you still would meet permission error when running groovy script in CLI.
1 …
Read MoreThe index has a field named 'create_time' that is the timestamp of document created time. The query string can boost the latest created document like below,
{!boost b=recip(ms(NOW,create_time),3.16e-11,0.08,0.05)}name:keyword
There is another field named 'important' that indicates whether the document is important or …
Read MoreIt's a common and ugly problem when using non-ascii characters in Django.
The general solution is below,
- put # -- coding: utf-8 -- at beginning of every python source files that are using utf-8 characters
- declare every string variable as unicode, such as str_var = u'中文字符'
- add a __unicode__ method in your model classes …
Read MoreI installed both Zend CE and zend debugger of Eclipse on my Mac. Both of them work well in Mac lion. However they don't work any more after I upgraded my Mac to mountain lion.
After some investigation I found some extensions of Zend PHP can't be loaded due to shared library dependency can't be found in mountain lion. …
Read MoreI had two monitors for my workstation. One is 22' and the another is 17'. I used the small one as a extend desktop.
Today I get a another 23' monitor to replace the small one. However the resolution of the 23' monitor can't be changed after pluging it in. It always used the resolution matching the 17' one.
Both …
Read MoreI want to create a test server for my application. Using embedding Http server in equinox is my first option.
I had experience using simple http service implementation of equinox, however I want to play with Jetty this time.
Following the guide of Equinox server, I can't running a Jetty server with my servlet in …
Read MoreSometimes I need access the Intranet of company, however I don't like to create VPN connection. The connection is slow, waste time to create the connection and have to change password due to security policy.
My workstation is Linux, which has a lot of utility tools to help me access Intranet at home without VPN. …
Read More- An internal Gerrit server was moved, so the hostname of server is changed. However we are using OpenID for user control, the OpenID provider(such as Google account) will generate a new token for the new server(hostname changing will impact the identity token of Google account) when we login Gerrit with same OpenID …
Read More The problem came from I tried to set up send mail server(SMTP) for my Gerrit server. My Gerrit server is using OpenID for user authorization, so I registered a new email account to send notification from Gerrit.
Most of email service providers require the secure authorization when using its SMTP server to send mail. …
Read MoreI successfully converted our product build from PDE build to Maven/Tycho. Something is worth to be documented here.
There are several examples and posts to demonstrate how using Tycho building your Eclipse plug-ins, features, applications and products. The most helpful example is the demo of Tycho project.
Below are …
Read More