Skip to content

Commit 8b5d2dd

Browse files
authored
Merge pull request #59 from haidaraM/fixJenkinsLoginPage
Try to find only 'Jenkins' in the login page
2 parents 0e3b2ca + 74cb212 commit 8b5d2dd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tasks/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,4 @@
190190

191191
- name: Verify Jenkins Web UI Content
192192
action: fail
193-
when: jenkins_ui.content.find('Jenkins ver. 2') == -1
194-
193+
when: "'Jenkins' not in jenkins_ui.content"

test/test_basic.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118

119119
- name: Verify Jenkins Web UI Content
120120
action: fail
121-
when: jenkins_ui.content.find('Jenkins ver. 2') == -1
121+
when: "'Jenkins' not in jenkins_ui.content"
122122

123123
- name: Verify jenkins_script Works with Security
124124
jenkins_script:
@@ -140,4 +140,3 @@
140140
register: script_test_2
141141
changed_when: false
142142
failed_when: "'Hello World!' not in script_test_2.output"
143-

0 commit comments

Comments
 (0)