diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /qa/qa/vendor/jenkins/page/configure_job.rb | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) | |
download | gitlab-ce-3cccd102ba543e02725d247893729e5c73b38295.tar.gz |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'qa/qa/vendor/jenkins/page/configure_job.rb')
-rw-r--r-- | qa/qa/vendor/jenkins/page/configure_job.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qa/qa/vendor/jenkins/page/configure_job.rb b/qa/qa/vendor/jenkins/page/configure_job.rb index 471567ec828..65719795720 100644 --- a/qa/qa/vendor/jenkins/page/configure_job.rb +++ b/qa/qa/vendor/jenkins/page/configure_job.rb @@ -15,6 +15,7 @@ module QA def configure(scm_url:) set_git_source_code_management_url(scm_url) + set_git_branches_to_build("*/#{Runtime::Env.default_branch}") click_build_when_change_is_pushed_to_gitlab set_publish_status_to_gitlab @@ -31,6 +32,10 @@ module QA set_repository_url(repository_url) end + def set_git_branches_to_build(branches) + find('.setting-name', text: "Branch Specifier (blank for 'any')").find(:xpath, "..").find('input').set branches + end + def click_build_when_change_is_pushed_to_gitlab find('label', text: 'Build when a change is pushed to GitLab').find(:xpath, "..").find('input').click end |