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
7cf96716
Commit
7cf96716
authored
Oct 26, 2017
by
Michael Youngstrom
Committed by
GitHub
Oct 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4170 from edx/youngstrom/jenkins_local_dev
Add tag to jenkins_common to allow local dev
parents
44b56c34
4add4442
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
playbooks/roles/jenkins_common/tasks/main.yml
+49
-0
No files found.
playbooks/roles/jenkins_common/tasks/main.yml
View file @
7cf96716
...
...
@@ -50,6 +50,21 @@
-
install
-
install:system-requirements
-
name
:
Delete any existing jenkins-configuration folders to avoid unwanted configuration
file
:
path
:
'
{{
item
}}'
owner
:
'
{{
jenkins_common_user
}}'
group
:
'
{{
jenkins_common_group
}}'
state
:
absent
with_items
:
-
'
{{
jenkins_common_home
}}/init.groovy.d'
-
'
{{
jenkins_common_config_path
}}'
tags
:
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Create necessary folders
file
:
path
:
'
{{
item
}}'
...
...
@@ -68,6 +83,8 @@
tags
:
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Download Jenkins war file
get_url
:
...
...
@@ -118,6 +135,7 @@
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Run gradle libs
shell
:
'
./gradlew
libs'
...
...
@@ -132,17 +150,28 @@
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Copy init scripts into init.groovy.d
command
:
'
cp
{{
jenkins_common_git_home
}}/jenkins-configuration/{{
jenkins_common_configuration_src_path
}}/{{
item
}}
{{
jenkins_common_home
}}/init.groovy.d/'
with_items
:
'
{{
jenkins_common_configuration_scripts
}}'
become
:
true
become_user
:
'
{{
jenkins_common_user
}}'
register
:
init_scripts_copied
tags
:
-
install
-
install:base
-
install:jenkins-configuration
-
name
:
Copy all init scripts other than oauth for local dev
command
:
'
cp
{{
jenkins_common_git_home
}}/jenkins-configuration/{{
jenkins_common_configuration_src_path
}}/{{
item
}}
{{
jenkins_common_home
}}/init.groovy.d/'
with_items
:
'
{{
jenkins_common_configuration_scripts
}}'
become
:
true
become_user
:
'
{{
jenkins_common_user
}}'
when
:
'
item
!=
"4configureGHOAuth.groovy"
and
init_scripts_copied
is
not
defined'
tags
:
-
jenkins:local-dev
-
name
:
Create jenkins config sub folders
file
:
path
:
'
{{
item
}}'
...
...
@@ -156,6 +185,8 @@
tags
:
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Copy non plugins template files
template
:
...
...
@@ -170,6 +201,17 @@
-
install:base
-
install:jenkins-configuration
-
name
:
For local dev, copy any config files other than oauth
template
:
src
:
'
{{
role_path
}}/templates/config/{{
item
}}.yml.j2'
dest
:
'
{{
jenkins_common_config_path
}}/{{
item
}}.yml'
owner
:
'
{{
jenkins_common_user
}}'
group
:
'
{{
jenkins_common_group
}}'
with_items
:
'
{{
jenkins_common_non_plugin_template_files
}}'
when
:
'
item
!=
"security"
and
templates_copied
is
not
defined'
tags
:
-
jenkins:local-dev
-
name
:
Update Github OAUTH settings when promoting jenkins instance to production
template
:
src
:
'
{{
role_path
}}/templates/config/security.yml.j2'
...
...
@@ -191,6 +233,7 @@
-
install:base
-
install:plugins
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Copy ec2 config files
template
:
...
...
@@ -204,6 +247,7 @@
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Copy xml config files
template
:
...
...
@@ -217,6 +261,7 @@
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Run plugins.gradle
shell
:
'
./gradlew
-b
plugins.gradle
plugins'
...
...
@@ -232,6 +277,7 @@
-
install:base
-
install:plugins
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Copy secret file credentials
copy
:
...
...
@@ -243,6 +289,7 @@
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Copy ssh key credentials
copy
:
...
...
@@ -256,6 +303,7 @@
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Copy ec2 key
copy
:
...
...
@@ -268,6 +316,7 @@
-
install
-
install:base
-
install:jenkins-configuration
-
jenkins:local-dev
-
name
:
Start Jenkins Service
systemd
:
...
...
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