Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4c500af3
Commit
4c500af3
authored
Feb 11, 2020
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for successful Jenkins job
parent
4a6eab3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
qa/qa.rb
qa/qa.rb
+1
-0
qa/qa/specs/features/ee/browser_ui/3_create/jenkins/jenkins_build_status_spec.rb
.../browser_ui/3_create/jenkins/jenkins_build_status_spec.rb
+11
-0
qa/qa/vendor/jenkins/page/job.rb
qa/qa/vendor/jenkins/page/job.rb
+23
-0
No files found.
qa/qa.rb
View file @
4c500af3
...
...
@@ -469,6 +469,7 @@ module QA
autoload
:Configure
,
'qa/vendor/jenkins/page/configure'
autoload
:NewCredentials
,
'qa/vendor/jenkins/page/new_credentials'
autoload
:NewJob
,
'qa/vendor/jenkins/page/new_job'
autoload
:Job
,
'qa/vendor/jenkins/page/job'
autoload
:ConfigureJob
,
'qa/vendor/jenkins/page/configure_job'
end
end
...
...
qa/qa/specs/features/ee/browser_ui/3_create/jenkins/jenkins_build_status_spec.rb
View file @
4c500af3
...
...
@@ -41,9 +41,20 @@ module QA
push
.
file_name
=
"file_
#{
SecureRandom
.
hex
(
4
)
}
.txt"
end
Vendor
::
Jenkins
::
Page
::
Job
.
perform
do
|
job
|
job
.
job_name
=
project_name
job
.
visit!
Support
::
Waiter
.
wait_until
(
sleep_interval:
1
,
reload_page:
page
)
do
job
.
has_successful_build?
end
end
project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:click_ci_cd_pipelines
)
Page
::
Project
::
Pipeline
::
Index
.
perform
(
&
:click_on_latest_pipeline
)
Page
::
Project
::
Pipeline
::
Show
.
perform
do
|
show
|
...
...
qa/qa/vendor/jenkins/page/job.rb
0 → 100644
View file @
4c500af3
# frozen_string_literal: true
require
'capybara/dsl'
module
QA
module
Vendor
module
Jenkins
module
Page
class
Job
<
Page
::
Base
attr_accessor
:job_name
def
path
"/job/
#{
@job_name
}
"
end
def
has_successful_build?
page
.
has_text?
(
"Last successful build"
)
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment