-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add playbook to launch any jenkins job
- Loading branch information
Showing
4 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[helix37] | ||
10.46.55.161 ansible_ssh_user=kni ansible_ssh_common_args="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=30" ansible_ssh_private_key_file=~/key |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# This playbook is generic and should be used to launch any jenkins job | ||
# given the job params, url, username and user token. | ||
- name: Launch jenkins job | ||
hosts: all | ||
tasks: | ||
# launch jenkins job using redhatci collection. | ||
- name: Launch jenkins job | ||
ansible.builtin.import_role: | ||
name: redhatci.ocp.jenkins_job_launcher | ||
vars: | ||
jjl_job_params: "{{ job_params }}" | ||
jjl_job_url: "{{ job_url }}" | ||
jjl_username: "{{ username }}" | ||
jjl_token: "{{ token }}" |
Empty file.