Skip to content

Commit

Permalink
simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski committed Jul 25, 2024
1 parent e8dbc16 commit e9cd3e2
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 29 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
env:
ANSIBLE_FORCE_COLOR: 1
jobs:
ubuntu-22:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install ansible
run: |
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible -y
ansible --version
- name: Run playbook
run: |
ansible-galaxy install -r requirements.yml
cd ..
ansible-playbook ansible-role-jenkins/playbook.yml
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: Install and Configure Jenkins
hosts: localhost
roles:
- role: lean_delivery.java
java_distribution: zulu
transport: fallback
java_major_version: 11
java_package: jdk
- role: ansible-role-jenkins
4 changes: 3 additions & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
---
- src: lean_delivery.java
- name: lean_delivery.java
src: https://github.com/lean-delivery/ansible-role-java
version: 7.2.2
1 change: 1 addition & 0 deletions tasks/configure/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- name: Wait for Jenkins starts
wait_for:
path: '{{ jenkins2_home_directory }}/config.xml'
become: true

- name: Force all notified handlers to run
meta: flush_handlers
Expand Down

0 comments on commit e9cd3e2

Please sign in to comment.