Commit c08722b7 by Jesse Zoldak

Install github-sqs-plugin from fork on Jenkins TE-1052

parent 4c40c241
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment