-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
George Adams
committed
Feb 9, 2018
1 parent
fe59b83
commit df6316e
Showing
4 changed files
with
19 additions
and
2 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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
.idea/* | ||
ansible/playbooks/*.retry | ||
*.pyc | ||
ansible/host_vars/* | ||
ansible/host_vars | ||
hosts |
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
- Debug | ||
- Common | ||
- Jenkins_User | ||
- Jenkins_Master | ||
- Ant-Contrib | ||
- ccache | ||
- GIT_Source | ||
|
15 changes: 15 additions & 0 deletions
15
ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Jenkins_Master/tasks/main.yml
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 @@ | ||
--- | ||
- name: Check if machine exists in jenkins | ||
uri: | ||
url: "https://ci.adoptopenjdk.net/computer/{{ ansible_hostname }}/api/json" | ||
register: jenkins | ||
ignore_errors: true | ||
tags: jenkins_master | ||
|
||
- name: SSH into the Jenkins and excute the jenkins-create-node.sh script | ||
become: false | ||
# TODO fetch a var instead of hard coding linux | ||
local_action: command ssh -o StrictHostKeyChecking=no jenkins@ci.adoptopenjdk.net "/home/jenkins/.jenkins/jenkins-create-node.sh {{ inventory_hostname }} {{ ansible_host }} /home/jenkins linux,{{os}},{{arch}},{{provider}},{{ansible_architecture}},{{type}},{{ansible_distribution|lower}},{{ansible_distribution|lower}}{{ansible_distribution_major_version}}" | ||
when: | ||
- jenkins.status != 200 | ||
tags: jenkins_master |
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