This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SNIPPETS
71 lines (55 loc) · 1.82 KB
/
SNIPPETS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
- name: INSTALL | START TOMCAT
# =====================================================================
command: "nohup {{catalina_base}}/bin/catalina.sh start 2>&1"
when: apache_tomcat_start == True
- name: INSTALL | WAIT FOR TOMCAT
# =====================================================================
wait_for: port=8080 delay={{ startup_delay_s | default(10) }}
when: apache_tomcat_start == True
- name: INSTALL | START TOMCAT
# =====================================================================
command: "nohup {{apache_tomcat_home}}/bin/catalina.sh start 2>&1"
when: jenkins_core_start == True
- name: INSTALL | WAIT FOR TOMCAT
# =====================================================================
wait_for: port=8080 delay={{ startup_delay_s | default(10) }}
when: jenkins_core_start == True
- name: JENKINS ¦ SETUP | WAIT FOR JENKINS
# =====================================================================
action: get_url
args:
force: true
url: "{{jenkins_url}}/view/All/builds"
dest: "/tmp"
register: r_get_url
until: r_get_url.msg is defined and r_get_url.msg.find("OK") != -1
retries: 10
delay: 6
println(Jenkins.getInstance().getSecurityRealm())
println(Jenkins.getInstance().getAuthorizationStrategy())
println(Jenkins.getInstance().isUseSecurity())
println(Jenkins.getInstance().getSecurity())
for (plugin in Jenkins.instance.pluginManager.plugins)
{
pinned = plugin.pinned
if (plugin.hasUpdate())
{
if (plugin.bundled)
{
pinned = false
}
version = plugin.updateInfo.version
}
else
{
version = plugin.version
}
println("""\
# ${plugin.displayName}
- name: ${plugin.shortName}
version: "${version}"
enabled: ${plugin.active}
bundled: ${plugin.bundled}
pinned: ${pinned}
""".stripIndent())
}