summaryrefslogtreecommitdiff
path: root/qa/qa/git/repository.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/git/repository.rb')
-rw-r--r--qa/qa/git/repository.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/qa/qa/git/repository.rb b/qa/qa/git/repository.rb
index 2c8e362edd6..e0fcb9b0599 100644
--- a/qa/qa/git/repository.rb
+++ b/qa/qa/git/repository.rb
@@ -102,6 +102,10 @@ module QA
git_lfs_track_result.to_s + git_add_result.to_s
end
+ def add_tag(tag_name)
+ run("git tag #{tag_name}").to_s
+ end
+
def delete_tag(tag_name)
run(%Q{git push origin --delete #{tag_name}}, max_attempts: 3).to_s
end
@@ -122,6 +126,10 @@ module QA
run("git push --all").to_s
end
+ def push_tags_and_branches(branches)
+ run("git push --tags origin #{branches.join(' ')}").to_s
+ end
+
def merge(branch)
run("git merge #{branch}")
end
@@ -204,7 +212,7 @@ module QA
alias_method :to_s, :response
def success?
- exitstatus.zero?
+ exitstatus == 0
end
end