Sin descripción

Dmitry Yu Okunev 394f6ac303 Fixed ru locales hace 8 años
app 394f6ac303 Fixed ru locales hace 8 años
config 394f6ac303 Fixed ru locales hace 8 años
db 0802fe4895 Add issue category to periodic tasks hace 9 años
lang d100ed4dbd initial commit/ first version hace 13 años
lib 6ef0de58f4 I18n localize hace 9 años
test 0802fe4895 Add issue category to periodic tasks hace 9 años
.travis-database.yml cf34b71464 refs #27 trying to get travis to work hace 9 años
.travis-init.sh cf34b71464 refs #27 trying to get travis to work hace 9 años
.travis.yml dcc3e6aeee refs #27 matching plugin name hace 9 años
README.md 49c719c843 Update README.md hace 9 años
init.rb 22524436f8 Adapted for NRNU MEPhI Redmine instance hace 8 años

README.md

Build Status

periodictask

In some projects there are tasks that need to be assigned on a schedule. Such as check the ssl registration once per year or run security checks every 3 months

After you installed the plugin you can add it as a module to a project that already exists or activate it as default module for new projects. On each project it will add a new tab named "Periodic Task" - just go there to add your tasks.

Note about redmine version support

This fork (jperelli) supports now redmine v2 and v3.

Redmine v1 support has been dropped in favor of newer v3. If you still need redmine v1 support, please use redmine2 branch, that supports v1 and v2.

Support table :

git branch redmine version support
1.x 2.x 3.x
master Unknown Yes Yes
redmine2 Yes Yes No

To use redmine2 branch, when cloning use -b redmine2 like this git clone -b redmine2 http://github.com:/jperelli/Redmine-Periodic-Task.git plugins/periodictask

Installation

cd /usr/local/share/redmine
git clone http://github.com:/jperelli/Redmine-Periodic-Task.git plugins/periodictask
rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production
apache2ctl graceful

Note: Copy the files into {redmine-base-dir}/plugins/periodictask. Do not use the directory name of the repository.

Upgrade

cd /usr/local/share/redmine/plugins/periodictask
git pull
rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production
apache2ctl graceful

Note: If you copy the files into {redmine-base-dir}/plugins/periodictask please update them instead of using git pull.

Uninstallation

cd /usr/local/share/redmine
rake redmine:plugins:migrate NAME=periodictask VERSION=0 RAILS_ENV=production
rm -rf plugins/periodictask
apache2ctl graceful

Configuration

As root do crontab -e and add this to the last line

0 1 * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production"

You can also make it run once per hour

0 * * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production"

Or even every 10 minutes

*/10 * * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production"

If you want to substitute variable MONTHNAME with localized version (de, tr, en or ru) please add LOCALE="de" to cronjob like this

0 * * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production" LOCALE="de"