Skip to content

Commit

Permalink
Merge pull request openedx-unsupported#1049 from edx/zoldak/jenkins-r…
Browse files Browse the repository at this point in the history
…eset-venv

Archive the current virtualenv state as a starting point for new builds
  • Loading branch information
Jay Zoldak committed Apr 28, 2014
2 parents 35ecccc + b5b731b commit 05b367b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions playbooks/roles/jenkins_worker/tasks/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@
template:
src=wheel_venv.sh.j2 dest={{ jenkins_home }}/wheel_venv.sh
owner={{ jenkins_user }} group={{ jenkins_group }} mode=700

# Archive the current state of the virtualenv
# as a starting point for new builds
- name: Create a clean virtualenv archive
command: >
tar -cpzWf {{ jenkins_venv }}_clean.tar.gz {{ jenkins_venv }}
chdir={{ jenkins_home }}
creates={{ jenkins_home }}/{{ jenkins_venv }}_clean.tar.gz
sudo_user: "{{ jenkins_user }}"

0 comments on commit 05b367b

Please sign in to comment.