Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
26189333
Commit
26189333
authored
Apr 29, 2014
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify jenkins worker task to run the wheel script to populate the python virtualenv.
parent
a286959d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
playbooks/roles/jenkins_worker/tasks/python.yml
+18
-3
No files found.
playbooks/roles/jenkins_worker/tasks/python.yml
View file @
26189333
...
...
@@ -45,11 +45,26 @@
src=wheel_venv.sh.j2 dest={{ jenkins_home }}/wheel_venv.sh
owner={{ jenkins_user }} group={{ jenkins_group }} mode=700
# Run the wheel_venv.sh script for the first time
# This was previously done in the Jenkins global
# configuration as part of the AMI Init script.
# Moving here so that we can archive a clean snapshot
# of the virtualenv with only the defined packages
# from jenkins_wheels.
-
name
:
Run the wheel_venv.sh script
command
:
>
./wheel_venv.sh edx-venv
chdir={{ jenkins_home }}
creates={{ jenkins_home }}/edx-venv
sudo_user
:
"
{{
jenkins_user
}}"
# Archive the current state of the virtualenv
# as a starting point for new builds
# as a starting point for new builds.
# The edx-venv directory is deleted and then recreated
# cleanly from the archive by the jenkins build scripts.
-
name
:
Create a clean virtualenv archive
command
:
>
tar -cpz
Wf {{ jenkins_venv }}_clean.tar.gz {{ jenkins_venv }}
tar -cpz
f edx-venv_clean.tar.gz edx-venv
chdir={{ jenkins_home }}
creates={{ jenkins_home }}/
{{ jenkins_venv }}
_clean.tar.gz
creates={{ jenkins_home }}/
edx-venv
_clean.tar.gz
sudo_user
:
"
{{
jenkins_user
}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment