mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2025-01-05 14:10:35 +00:00
add redmine_fetch_changesets cron job
This commit is contained in:
parent
9eccd38026
commit
708a963739
@ -11,6 +11,8 @@
|
|||||||
- gcc-c++
|
- gcc-c++
|
||||||
- ImageMagick-devel
|
- ImageMagick-devel
|
||||||
- expect # for install_wrapper
|
- expect # for install_wrapper
|
||||||
|
- subversion # Repository integration
|
||||||
|
- git # Repository integration
|
||||||
|
|
||||||
- name: install bundler, redmine-installer gems
|
- name: install bundler, redmine-installer gems
|
||||||
gem: name='{{ item }}'
|
gem: name='{{ item }}'
|
||||||
@ -89,6 +91,12 @@
|
|||||||
mode=750
|
mode=750
|
||||||
sudo: no
|
sudo: no
|
||||||
|
|
||||||
|
- name: add redmine repository fetch script
|
||||||
|
template: dest='{{ redmine_root_dir }}/script/redmine_fetch_changesets'
|
||||||
|
src=redmine_fetch_changesets.j2
|
||||||
|
mode=750
|
||||||
|
sudo: no
|
||||||
|
|
||||||
- name: adding redmine_receive_imap crontab
|
- name: adding redmine_receive_imap crontab
|
||||||
cron: name="fetch from imap"
|
cron: name="fetch from imap"
|
||||||
minute="*/5"
|
minute="*/5"
|
||||||
@ -96,3 +104,10 @@
|
|||||||
user='{{ redmine_owner }}'
|
user='{{ redmine_owner }}'
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
|
- name: adding redmine_fetch_changesets crontab
|
||||||
|
cron: name="fetch from repository"
|
||||||
|
minute="*/5"
|
||||||
|
job="({{ redmine_root_dir }}/script/redmine_fetch_changesets 2>&1 | sed '/install RDoc/d') >> {{ redmine_root_dir }}/log/redmine_fetch_changesets"
|
||||||
|
user='{{ redmine_owner }}'
|
||||||
|
sudo: yes
|
||||||
|
|
||||||
|
9
roles/easyredmine/templates/redmine_fetch_changesets.j2
Executable file
9
roles/easyredmine/templates/redmine_fetch_changesets.j2
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# retrieve svn changes for Redmine
|
||||||
|
|
||||||
|
cd {{ redmine_root_dir }}
|
||||||
|
|
||||||
|
/usr/local/bin/bundle exec rake \
|
||||||
|
redmine:fetch_changesets \
|
||||||
|
RAILS_ENV="production"
|
Loading…
Reference in New Issue
Block a user