Commit 92b1a410 by clytwynec

Merge pull request #1359 from edx/clytwynec/removing_rake_install_on_jenkins

Clytwynec/removing rake install on jenkins
parents 4b416a96 53aacc2d
...@@ -173,7 +173,7 @@ EDXAPP_CC_PROCESSOR: ...@@ -173,7 +173,7 @@ EDXAPP_CC_PROCESSOR:
# does not affect verified students # does not affect verified students
EDXAPP_PAID_COURSE_REGISTRATION_CURRENCY: ['usd', '$'] EDXAPP_PAID_COURSE_REGISTRATION_CURRENCY: ['usd', '$']
# Configure rake tasks in edx-platform to skip Python/Ruby/Node installation # Configure paver tasks in edx-platform to skip Python/Ruby/Node installation
EDXAPP_NO_PREREQ_INSTALL: 1 EDXAPP_NO_PREREQ_INSTALL: 1
# whether to setup the python codejail or not # whether to setup the python codejail or not
......
...@@ -90,11 +90,11 @@ ...@@ -90,11 +90,11 @@
- "restart edxapp" - "restart edxapp"
- "restart edxapp_workers" - "restart edxapp_workers"
# Gather assets using rake if possible # Gather assets using paver if possible
- name: gather {{ item }} static assets with rake - name: gather {{ item }} static assets with paver
shell: > shell: >
SERVICE_VARIANT={{ item }} rake {{ item }}:gather_assets:aws SERVICE_VARIANT={{ item }} paver update_assets {{ item }} --settings=aws
executable=/bin/bash executable=/bin/bash
chdir={{ edxapp_code_dir }} chdir={{ edxapp_code_dir }}
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
......
...@@ -5,3 +5,4 @@ dependencies: ...@@ -5,3 +5,4 @@ dependencies:
rbenv_user: "{{ jenkins_user }}" rbenv_user: "{{ jenkins_user }}"
rbenv_dir: "{{ jenkins_home }}" rbenv_dir: "{{ jenkins_home }}"
rbenv_ruby_version: "{{ jenkins_ruby_version }}" rbenv_ruby_version: "{{ jenkins_ruby_version }}"
jenkins_worker: true
...@@ -119,11 +119,13 @@ ...@@ -119,11 +119,13 @@
- name: remove rbenv version of rake - name: remove rbenv version of rake
file: path="{{ rbenv_dir }}/.rbenv/versions/{{ rbenv_ruby_version }}/bin/rake" state=absent file: path="{{ rbenv_dir }}/.rbenv/versions/{{ rbenv_ruby_version }}/bin/rake" state=absent
when: jenkins_worker is not defined or not jenkins_worker
- name: install rake gem - name: install rake gem
shell: "gem install rake -v {{ rbenv_rake_version }}" shell: "gem install rake -v {{ rbenv_rake_version }}"
sudo_user: "{{ rbenv_user }}" sudo_user: "{{ rbenv_user }}"
environment: "{{ rbenv_environment }}" environment: "{{ rbenv_environment }}"
when: jenkins_worker is not defined or not jenkins_worker
- name: rehash - name: rehash
shell: "rbenv rehash" shell: "rbenv rehash"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment