No Description

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

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"