diff options
| -rw-r--r-- | jjb/yaml/admin-api-server.yaml | 49 | ||||
| -rw-r--r-- | pillar/openbook/ansible.sls | 5 | ||||
| -rw-r--r-- | salt/openbook/ansible/files/gradle.yaml | 37 | ||||
| -rw-r--r-- | salt/openbook/ansible/files/install_openbook_docker_slave.yaml | 1 |
4 files changed, 92 insertions, 0 deletions
diff --git a/jjb/yaml/admin-api-server.yaml b/jjb/yaml/admin-api-server.yaml new file mode 100644 index 0000000..2cf2dcd --- /dev/null +++ b/jjb/yaml/admin-api-server.yaml @@ -0,0 +1,49 @@ +--- +- scm: + name: openbook-core + scm: + - git: + url: https://github.com/Talligent/openbook-core.git + branches: + - master + +- scm: + name: admin-api-server + scm: + - git: + url: https://github.com/Talligent/admin-api-server.git + branches: + - master + +- scm: + name: admin-api-server-combined + scm: + - openbook-core + - admin-api-server + +- job: + name: admin-api-server + display-name: "admin-api-server" + project-type: freestyle + description: "" + node: openbook_v4 + properties: + - build-discarder: + days-to-keep: 0 + num-to-keep: 1 + artifact-days-to-keep: 0 + artifact-num-to-keep: 0 + triggers: + - timed: "H 23 * * *" + scm: + - admin-api-server-combined + builders: + - gradle: + build-file: "build.gradle" + gradle-name: "gradle-1.2" + wrapper: true + executable: true + use-root-dir: true + tasks: | + clean + shadowJar diff --git a/pillar/openbook/ansible.sls b/pillar/openbook/ansible.sls index dbff27a..547ee78 100644 --- a/pillar/openbook/ansible.sls +++ b/pillar/openbook/ansible.sls @@ -66,6 +66,11 @@ ansible: source: openjdk.yaml mode: "0644" is_template: False + playbooks_gradle_yaml: + name: playbooks/gradle.yaml + source: gradle.yaml + mode: "0644" + is_template: False playbooks_ssh_keys_yaml: name: playbooks/ssh_keys.yaml source: ssh_keys.yaml diff --git a/salt/openbook/ansible/files/gradle.yaml b/salt/openbook/ansible/files/gradle.yaml new file mode 100644 index 0000000..4946da0 --- /dev/null +++ b/salt/openbook/ansible/files/gradle.yaml @@ -0,0 +1,37 @@ +--- +- name: "Install gradle" + hosts: target + tasks: + - name: "Update apt" + apt: + update_cache: yes + when: ansible_distribution == "Ubuntu" + + - name: "Install gradle package" + apt: + pkg: "{{ item }}" + state: present + with_items: + - gradle + when: ansible_distribution == "Ubuntu" + + - name: "Update yum cache" + yum: + update_cache: yes + when: ansible_distribution == "RedHat" or ansible_distribution == "CentOS" + + - name: "Install gradle package" + yum: + name: "{{ item }}" + state: present + with_items: + - gradle + when: ansible_distribution == "RedHat" or ansible_distribution == "CentOS" + + - name: "Install icedtea package" + portage: + name: "{{ item }}" + state: present + with_items: + - dev-java/gradle-bin + when: ansible_distribution == "Gentoo" diff --git a/salt/openbook/ansible/files/install_openbook_docker_slave.yaml b/salt/openbook/ansible/files/install_openbook_docker_slave.yaml index 2f553c5..ebcec43 100644 --- a/salt/openbook/ansible/files/install_openbook_docker_slave.yaml +++ b/salt/openbook/ansible/files/install_openbook_docker_slave.yaml @@ -3,6 +3,7 @@ - include: docker.yaml - include: mysql_client.yaml - include: openjdk.yaml +- include: gradle.yaml - include: jenkins_user.yaml - include: ssh_keys.yaml - include: ansible.yaml |
