Author: maven-release Date: 2014-02-25 02:19:54 +0100 (Tue, 25 Feb 2014) New Revision: 43 Url: http://codelutin.com/projects/adminsys/repository/revisions/43 Log: refs #4152: Mettre les scripts sur le svn d'adminsys (update redmine-tools) Added: scripts/redmine-tools/cron-redmine Modified: scripts/redmine-tools/check-post-commit.sh scripts/redmine-tools/redmine-post-commit.sh Modified: scripts/redmine-tools/check-post-commit.sh =================================================================== --- scripts/redmine-tools/check-post-commit.sh 2014-02-25 00:53:36 UTC (rev 42) +++ scripts/redmine-tools/check-post-commit.sh 2014-02-25 01:19:54 UTC (rev 43) @@ -10,6 +10,8 @@ # $3 if this arg exist (no specific value) then force file creation (overwrite) # # changelog +# 20140224 chemit@codelutin.com +# - use new forge layout # 20120321 chemit@codelutin.com # - use a unify script (bored to generated everywhere same script for maintin purpose...) # 20120209 chemit@codelutin.com @@ -25,23 +27,20 @@ # chorem or nuiton hostname=$1 if [ -n "$(echo $hostname |grep nuiton)" ];then - hostname=nuiton domain=nuiton.org svnapikey="q6aM3bhpwi9w5Y0Q4tLA" elif [ -n "$(echo $hostname |grep chorem)" ];then - hostname=chorem domain=chorem.org svnapikey="03WmG5DuFqdlp75GyAeT" else - hostname=forge - domain=forge.codelutin.com + domain=codelutin.com svnapikey="UDh19sTvBsU7HmzbxSlk" fi projectname=$2 force=$3 svnroot="/var/lib/svn/svn-$domain/$projectname" -postcommitfile="/var/lib/svn/svn-$domain/$projectname/hooks/post-commit" +postcommitfile="$svnroot/hooks/post-commit" if [ -n $(list_lists | grep -i '$projectname-commits') ]; then echo "list exists for $projectname" Added: scripts/redmine-tools/cron-redmine =================================================================== --- scripts/redmine-tools/cron-redmine (rev 0) +++ scripts/redmine-tools/cron-redmine 2014-02-25 01:19:54 UTC (rev 43) @@ -0,0 +1,40 @@ +#!/bin/sh +# +# cron-jobs for redmine +# + +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +#MAILTO=root + +nuiton_log=/var/log/redmine-nuiton.org.log +chorem_log=/var/log/redmine-chorem.org.log +codelutin_log=/var/log/redmine-codelutin.com.log + +nuiton_key=q6aM3bhpwi9w5Y0Q4tLA +chorem_key=03WmG5DuFqdlp75GyAeT +codelutin_key=UDh19sTvBsU7HmzbxSlk + +date >> $nuiton_log +date >> $chorem_log +date >> $codelutin_log + +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.nuiton.org --admin-email moderate@codelutin.com --list-domain list.nuiton.org --list-suffix commits --key $nuiton_key >> $nuiton_log +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.nuiton.org --admin-email moderate@codelutin.com --list-domain list.nuiton.org --list-suffix users --key $nuiton_key >> $nuiton_log +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.nuiton.org --admin-email moderate@codelutin.com --list-domain list.nuiton.org --list-suffix devel --key $nuiton_key >> $nuiton_log + +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.chorem.org --admin-email moderate@codelutin.com --list-domain list.chorem.org --list-suffix commits --key $chorem_key >> $chorem_log +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.chorem.org --admin-email moderate@codelutin.com --list-domain list.chorem.org --list-suffix users --key $chorem_key >> $chorem_log +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.chorem.org --admin-email moderate@codelutin.com --list-domain list.chorem.org --list-suffix devel --key $chorem_key >> $chorem_log + +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.codelutin.com --admin-email moderate@codelutin.com --list-domain list.forge.codelutin.com --list-suffix commits --key $codelutin_key >> $codelutin_log +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.codelutin.com --admin-email moderate@codelutin.com --list-domain list.forge.codelutin.com --list-suffix users --key $codelutin_key >> $codelutin_log +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.codelutin.com --admin-email moderate@codelutin.com --list-domain list.forge.codelutin.com --list-suffix devel --key $codelutin_key >> $codelutin_log +ruby /opt/redmine-tools/project-list.rb --redmine-host forge.codelutin.com --admin-email moderate@codelutin.com --list-domain list.forge.codelutin.com --list-suffix private --key $codelutin_key >> $codelutin_log + +ruby /opt/redmine-tools/reposman.rb --redmine-host forge.nuiton.org --svn-dir /var/lib/svn/svn-nuiton.org --owner www-data --group publish --url http://forge.nuiton.org/svn-private/ --key $nuiton_key >> $nuiton_log +ruby /opt/redmine-tools/reposman.rb --redmine-host forge.chorem.org --svn-dir /var/lib/svn/svn-chorem.org --owner www-data --group publish --url http://forge.chorem.org/svn-private/ --key $chorem_key >> $chorem_log +ruby /opt/redmine-tools/reposman.rb --redmine-host forge.codelutin.com --svn-dir /var/lib/svn/svn-codelutin.com --owner www-data --group publish --url http://forge.codelutin.com/svn-private/ --key $codelutin_key >> $codelutin_log + +ruby /opt/redmine-tools/project-site.rb -s /var/lib/doc/nuiton.org -r forge.nuiton.org --owner publish --key $nuiton_key >> $nuiton_log +ruby /opt/redmine-tools/project-site.rb -s /var/lib/doc/chorem.org -r forge.chorem.org --owner publish --key $chorem_key >> $chorem_log +ruby /opt/redmine-tools/project-site.rb -s /var/lib/doc/codelutin.com -r forge.codelutin.com --owner publish --key $codelutin_key >> $codelutin_log Property changes on: scripts/redmine-tools/cron-redmine ___________________________________________________________________ Added: svn:executable + * Modified: scripts/redmine-tools/redmine-post-commit.sh =================================================================== --- scripts/redmine-tools/redmine-post-commit.sh 2014-02-25 00:53:36 UTC (rev 42) +++ scripts/redmine-tools/redmine-post-commit.sh 2014-02-25 01:19:54 UTC (rev 43) @@ -1,5 +1,5 @@ # -# Script lancé à chaque commit +# Script lance a chaque commit # REPOS="$1" @@ -12,7 +12,7 @@ /opt/redmine-tools/commit-email.pl -h users.$DOMAIN "$REPOS" "$REV" $PROJECT_NAME-commits@list.$DOMAIN # refresh redmine svn viewer -wget "http://$DOMAIN/sys/fetch_changesets?key=$SVN_API_KEY" --spider & +wget "http://forge.$DOMAIN/sys/fetch_changesets?key=$SVN_API_KEY" --spider & # touch project for nightly build touch /var/cache/redmine/nightly-build/$DOMAIN/$PROJECT_NAME.site