KanonConductor

changeset 49:acf4362e4e9d

support jenkins link.
author chris
date Thu, 31 Mar 2011 11:57:16 +0900
parents b6b401a726c5
children 6b5fdf0a9a1d
files etc/opt/kanon/trac-template/common/trac.ini kanon-setup opt/kanon/bin/kanon-create-project pluginlist
diffstat 4 files changed, 32 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/etc/opt/kanon/trac-template/common/trac.ini	Tue Mar 29 22:35:51 2011 +0900
     1.2 +++ b/etc/opt/kanon/trac-template/common/trac.ini	Thu Mar 31 11:57:16 2011 +0900
     1.3 @@ -195,3 +195,8 @@
     1.4  fields.parent = parents
     1.5  fields.percent = complete
     1.6  fields.start = due_assign
     1.7 +
     1.8 +[hudsonplus]
     1.9 +display_in_new_tab = true
    1.10 +hudson_url = http://localhost:8080/jenkins/
    1.11 +navigation_label = ビルド
     2.1 --- a/kanon-setup	Tue Mar 29 22:35:51 2011 +0900
     2.2 +++ b/kanon-setup	Thu Mar 31 11:57:16 2011 +0900
     2.3 @@ -316,7 +316,7 @@
     2.4  # setup SampleProject
     2.5  if [ ! -d "$KANON_VAR/trac/SampleProject" ]
     2.6  then
     2.7 -    /opt/kanon/bin/kanon-create-project SampleProject svn default
     2.8 +    /opt/kanon/bin/kanon-create-project SampleProject svn default y
     2.9      svn import SampleProject file:///var/opt/kanon/svn/SampleProject/ -m "initial import."
    2.10      chown $APACHE_USER.$APACHE_USER -R /var/opt/kanon/svn/SampleProject
    2.11  fi
     3.1 --- a/opt/kanon/bin/kanon-create-project	Tue Mar 29 22:35:51 2011 +0900
     3.2 +++ b/opt/kanon/bin/kanon-create-project	Thu Mar 31 11:57:16 2011 +0900
     3.3 @@ -9,6 +9,7 @@
     3.4  PROJECT_NAME=$1
     3.5  REPO_TYPE=$2
     3.6  TEMPLATE=$3
     3.7 +JENKINS=$4
     3.8  
     3.9  export PYTHONPATH=$KANON_HOME/lib/python2.6:$KANON_HOME/lib/python2.6/site-packages
    3.10  export PATH=$KANON_HOME/bin:$PATH
    3.11 @@ -141,9 +142,20 @@
    3.12    exit
    3.13  fi
    3.14  
    3.15 +if [ "$JENKINS" == '' ]
    3.16 +then
    3.17 +    echo -n "
    3.18 +Kanonは継続的インテグレーションツールとしてJenkinsを統合して利用することができま
    3.19 +す。
    3.20 +
    3.21 +継続的インテグレーションを利用しますか?(y/n): "
    3.22 +    read JENKINS
    3.23 +fi
    3.24 +
    3.25  echo "プロジェクト名:   " $PROJECT_NAME
    3.26  echo "リポジトリタイプ: " $REPO_TYPE
    3.27  echo "テンプレート:     " $TEMPLATE
    3.28 +echo "CIツールの利用:   " $JENKINS
    3.29  
    3.30  if [ "$3" = '' ]
    3.31  then
    3.32 @@ -228,6 +240,15 @@
    3.33  grep -v 'authz_* = ' $KANON_VAR/trac/$PROJECT_NAME/conf/trac.ini > /tmp/$PROJECT_NAME_trac.ini
    3.34  mv /tmp/$PROJECT_NAME_trac.ini $KANON_VAR/trac/$PROJECT_NAME/conf/trac.ini
    3.35  
    3.36 +# HudsonTracPlugPluginを有効化
    3.37 +if [ "$JENKINS" = 'y' ]
    3.38 +then
    3.39 +    echo "
    3.40 +[components]
    3.41 +hudsontracplus.hudsontracplusplugin.hudsontracplusplugin = enabled
    3.42 +" >> $KANON_VAR/trac/$PROJECT_NAME/conf/trac.ini 
    3.43 +fi
    3.44 +
    3.45  trac-admin $KANON_VAR/trac/$PROJECT_NAME upgrade
    3.46  trac-admin $KANON_VAR/trac/$PROJECT_NAME repository resync "*"
    3.47  
    3.48 @@ -253,8 +274,7 @@
    3.49  "
    3.50  
    3.51  echo "プロジェクト管理 : http://[サーバ名]/trac/"$PROJECT_NAME
    3.52 -echo "リポジトリ       : http://[サーバ名]/"$REPO_TYPE"/"$PROJECT_NAME
    3.53 -
    3.54 -
    3.55 -
    3.56 -
    3.57 +if [ "$REPO_TYPE" != '' ]
    3.58 +then
    3.59 +    echo "リポジトリ       : http://[サーバ名]/"$REPO_TYPE"/"$PROJECT_NAME
    3.60 +fi
     4.1 --- a/pluginlist	Tue Mar 29 22:35:51 2011 +0900
     4.2 +++ b/pluginlist	Thu Mar 31 11:57:16 2011 +0900
     4.3 @@ -5,3 +5,4 @@
     4.4  http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/completeuserplugin/trunk
     4.5  http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/reportincludeplugin/trunk/0.12
     4.6  http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/trackanontheme/trunk
     4.7 +http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/hudsontracplus/0.11