aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
diff options
context:
space:
mode:
authorJukka Jokiniva <jukka.jokiniva@qt.io>2019-01-03 12:04:39 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-04-09 12:30:16 +0000
commit061d5338055456655d64dd8f4ee2cc434a501bf7 (patch)
treed6a9122c19f025e17e5fa0c285b3e2a73fa9f01a /src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
parentbe31ec0d9673eaf040e78b80faeef3c942fde9fa (diff)
Add new build ssh command
Fixes: QTBI-1545 Change-Id: I2da62e83eda43fe9127cef238a3c82cf46171202 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java')
-rw-r--r--src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java b/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
index 28a9d73..5fbb78d 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
@@ -45,6 +45,7 @@ public class QtCodeReviewIT extends LightweightPluginDaemonTest {
protected static final String R_HEADS = "refs/heads/";
protected static final String R_STAGING = "refs/staging/";
+ protected static final String R_BUILDS = "refs/builds/";
protected static final String R_PUSH = "refs/for/";
protected static final String CONTENT_DATA = "hereisjustsomecontentforthecommits";
@@ -116,6 +117,17 @@ public class QtCodeReviewIT extends LightweightPluginDaemonTest {
return response;
}
+ protected void QtNewBuild(String branch, String buildId) throws Exception {
+ String commandStr;
+ commandStr ="gerrit-plugin-qt-workflow staging-new-build";
+ commandStr += " --project " + project.get();
+ commandStr += " --staging-branch " + branch;
+ commandStr += " --build-id " + buildId;
+ String resultStr = adminSshSession.exec(commandStr);
+ assertThat(adminSshSession.getError()).isNull();
+ resetEvents();
+ }
+
protected PushOneCommit.Result pushCommit(String branch,
String message,
String file,