?

Log in

Previous 10

Jan. 25th, 2016

fedora 蓝色小药丸

My tweets

Tags:

Jan. 19th, 2016

fedora 蓝色小药丸

My tweets

Tags:

Jan. 15th, 2016

fedora 蓝色小药丸

My tweets

Tags:

Jan. 8th, 2016

fedora 蓝色小药丸

Jenkins config

Spend so much time to config one item. It should have samples for using variables and warnings for values!

- there are two environment setup area, one for "build" environment that we usually use, one for "run" environment which is set earlier and is still valid in post-build actions

- can use variables in Git "branch" settings

- cannot use variables in label expression (choose where job can run)

- in script, variables are referenced like $VARIABLE_NAME, but ${VARIABLE_NAME} should also work?

- in cmd batch script, variables are %VARIABLE_NAME% and sometimes need to use %% (in loop)

- in "Publish HTML reports", variables are supported, file name is case sensitive

- in "Publish NUnit test result", set a file name pattern, cannot use variables

Also, using a parameter as "branch" setting is a bad idea, because firstly it is slower to open "build with parameter" page; then it is often not thoroughly considered what archive target should be and what deployment job to trigger.

TBD

- If using a variable as "branch" setting, then another job is needed to set default value?

- I don't want a build job to trigger a deployment job, but treat them as "partial", call them in another job. No idea if pipeline is good at this.

- Is there a naming convention for partials?

- Still cannot do things out of daily work requirement (think of scenarios of configuring Jenkins), or only focus on daily work requirement (rather than trying to work on Jenkins). Is it a good thing? What's wrong with me?

(currently using Jenkins-1.609)

Dec. 25th, 2015

fedora 蓝色小药丸

gitconfig

被一个找不到的文件折腾得要疯掉了


Yijun@M4700W ~
$ git config --unset http.sslcainfo

Yijun@M4700W ~
$ git config -l |grep ssl
http.sslcainfo=C:/cygwin/Opt/Git-2.4.6-x64/mingw64/ssl/certs/ca-bundle.crt

Yijun@M4700W ~
$ git config --unset --global http.sslcainfo

Yijun@M4700W ~
$ git config -l |grep ssl
http.sslcainfo=C:/cygwin/Opt/Git-2.4.6-x64/mingw64/ssl/certs/ca-bundle.crt

Yijun@M4700W ~
$ git config --unset --system http.sslcainfo

Yijun@M4700W ~
$ git config -l |grep ssl
http.sslcainfo=C:/cygwin/Opt/Git-2.4.6-x64/mingw64/ssl/certs/ca-bundle.crt

Yijun@M4700W ~
$ pwd
/home/Yijun

Yijun@M4700W ~
$ which git
/Opt/Git-2.6-x64/cmd/git


最后还是用 Procmon,运行 git config -l,发现了配置文件是 c:\ProgramData\Git\config

删掉文件,遇到另一个问题,默认的路径不对。


Yijun@M4700W /cygdrive/d/workspace/dss-devdataprod-035-20151224
$ git push -u origin master
fatal: unable to access 'https://github.com/bbbush/dss.devdataprod035.ShinyApp.git/': error setting certificate verify locations:
CAfile: C:/cygwin/Opt/Git-2.6-x64/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none



之前是在 /mingw64/ssl,现在不知道怎么多了个 libexec 在里头。

重新安装 Git-2.6,安装程序重写了这个文件,里面包含了新的 http.sslcainfo 路径。那没有更新路径就是安装程序的问题了。
Tags:

Dec. 11th, 2015

fedora 蓝色小药丸

My tweets

Tags:
fedora 蓝色小药丸

HTML5/Angular/SCSS programming tip

This email excerpt is regarding how to re-use templates and behavior, but make it possible to re-define styles. We are already doing this but not complete.


  • For a re-usable element, the template should have a root element. And this element will have a class that has the same name as this element. This class name will be used in CSS selector for all elements it contains.

  • A re-usable element should have minimum default styles, better have none

  • To share styles, define mixin for this re-usable element, and include them in enclosing element’s styles.

  • Any selector should be shortest possible. Because if an element can be specified with different selectors, it lost uniqueness and its style will be solely based on the order how CSS is included. A unique shortest path makes it possible to override styles. The general rule of thumb is to always include the before mentioned class name of that re-usable element, but no more.

For exampleCollapse )
Tags:

Dec. 9th, 2015

fedora 蓝色小药丸

My tweets

Tags:

Nov. 28th, 2015

fedora 蓝色小药丸

My tweets

Tags:

Nov. 23rd, 2015

fedora 蓝色小药丸

My tweets

Tags:

Previous 10