Recently I wrote a Linux like initd script to start/stop my web application. The script works well when running it in shell of linux. The web application will run in background by daemon. However I found both daemon and web application(java) exited immediately if I started the script in Jenkins as a shell step of build …
Read MoreAfter uninstalling some applications from my Mac OSX, I found the applications that depends on JRE totally does not work. I noticed below symptoms, Eclipse Mars can not be launched, even though I specified the launching vm to another one(
java -version
still work). The SWT native library failed to resolve the …
Read MoreJenkins 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 2java -jar …
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 More