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
c08722b7
Commit
c08722b7
authored
Dec 28, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install github-sqs-plugin from fork on Jenkins TE-1052
parent
4c40c241
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
playbooks/roles/jenkins_master/defaults/main.yml
+6
-0
playbooks/roles/jenkins_master/tasks/main.yml
+30
-0
No files found.
playbooks/roles/jenkins_master/defaults/main.yml
View file @
c08722b7
...
...
@@ -80,6 +80,12 @@ jenkins_bundled_plugins:
-
"
ssh-credentials"
-
"
ssh-slaves"
jenkins_custom_plugins
:
-
{
repo_name
:
"
github-sqs-plugin"
,
repo_url
:
"
https://github.com/jzoldak/github-sqs-plugin.git"
,
package
:
"
github-sqs-plugin.hpi"
,
version
:
"
a6069caf072f13178c0c83b3b95f4d6ae12caad0"
}
jenkins_debian_pkgs
:
-
nginx
-
git
...
...
playbooks/roles/jenkins_master/tasks/main.yml
View file @
c08722b7
...
...
@@ -105,6 +105,36 @@
notify
:
-
restart Jenkins
# We had to fork some plugins to workaround
# certain issues. If these changes get merged
# upstream, we may be able to use the regular plugin install process.
# Until then, we compile and install the forks ourselves.
-
name
:
checkout custom plugin repo
git
:
>
repo={{ item.repo_url }} dest=/tmp/{{ item.repo_name }} version={{ item.version }}
accept_hostkey=yes
with_items
:
jenkins_custom_plugins
register
:
jenkins_custom_plugins_checkout
-
name
:
compile custom plugins
command
:
mvn -Dmaven.test.skip=true install chdir=/tmp/{{ item.item.repo_name }}
with_items
:
jenkins_custom_plugins_checkout.results
when
:
item.changed
-
name
:
install custom plugins
command
:
mv /tmp/{{ item.item.repo_name }}/target/{{ item.item.package }}
{{ jenkins_home }}/plugins/{{ item.item.package }}
with_items
:
jenkins_custom_plugins_checkout.results
when
:
item.changed
notify
:
-
restart Jenkins
-
name
:
set custom plugin permissions
file
:
path={{ jenkins_home }}/plugins/{{ item.item.package }}
owner={{ jenkins_user }} group={{ jenkins_group }} mode=700
with_items
:
jenkins_custom_plugins_checkout.results
when
:
item.changed
# Plugins that are bundled with Jenkins are "pinned".
# Jenkins will overwrite updated plugins with its built-in version
# unless we create a ".pinned" file for the plugin.
...
...
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