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
edx
configuration
Commits
f3066893
Commit
f3066893
authored
Aug 22, 2016
by
stu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made android_sdk role more generic
parent
3d25d542
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
playbooks/roles/android_sdk/defaults/main.yml
+2
-2
playbooks/roles/android_sdk/tasks/main.yml
+9
-9
playbooks/roles/jenkins_worker/meta/main.yml
+12
-0
No files found.
playbooks/roles/android_sdk/defaults/main.yml
View file @
f3066893
---
# User/group to manage Android SDK
jenkins_user
:
"
jenkins
"
jenkins_group
:
"
jenkins
"
android_user
:
"
android
"
android_group
:
"
android
"
# Tarball to download
android_download
:
"
android-sdk_r24.4.1-linux.tgz"
# Checksum of Android SDK (from: https://developer.android.com/studio/index.html#downloads)
...
...
playbooks/roles/android_sdk/tasks/main.yml
View file @
f3066893
---
# Configure the Jenkins worker system for building the edx android application
-
name
:
Create jenkins group
group
:
name={{ jenkins_group }} state=present
# Configure a system for building the edx android application
# The Jenkins account needs a login shell because Jenkins uses scp
-
name
:
Add the jenkins user to the group and configure shell
user
:
name={{ jenkins_user }} append=yes group={{ jenkins_group }} shell=/bin/bash
# Configure a user/group to own/run the android sdk
-
name
:
Create group for the user of the sdk
group
:
name={{ android_group }} state=present
-
name
:
Add the user to the group and configure shell
user
:
name={{ android_user }} append=yes group={{ android_group }} shell=/bin/bash
# Download the Android SDK/tools tarball from Google's download site.
# NOTE: while it is the general policy to use repositories/ppas as much as possible
...
...
@@ -29,11 +29,11 @@
src
:
/tmp/android-sdk.tgz
dest
:
/opt
creates
:
"
{{
android_home
}}"
owner
:
"
{{
jenkins
_user
}}"
group
:
"
{{
jenkins
_group
}}"
owner
:
"
{{
android
_user
}}"
group
:
"
{{
android
_group
}}"
become
:
yes
# Use the android sdk manager to install the build targets necessary for the edx mobile app
-
name
:
Install Android API levels
shell
:
"
echo
'y'
|
{{
android_home
}}/tools/android
update
sdk
--no-ui
--filter
{{
','.join(android_build_targets)
}}"
become
:
yes
become_user
:
"
{{
jenkins
_user
}}"
become_user
:
"
{{
android
_user
}}"
playbooks/roles/jenkins_worker/meta/main.yml
View file @
f3066893
...
...
@@ -19,3 +19,15 @@ dependencies:
# dependencies for android worker
-
role
:
android_sdk
when
:
android_worker is defined
# User/group to manage Android SDK
android_user
:
"
jenkins"
android_group
:
"
jenkins"
# Tarball to download
android_download
:
"
android-sdk_r24.4.1-linux.tgz"
# Checksum of Android SDK (from: https://developer.android.com/studio/index.html#downloads)
android_checksum
:
"
725bb360f0f7d04eaccff5a2d57abdd49061326d"
# path to installed android sdk
android_home
:
"
/opt/android-sdk-linux"
# individual android build targets to be downloaded via the androind sdk manager
android_build_targets
:
-
android-23
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