Print output of 'git review' to console
This will show the link to CR.
Related-Prod: PROD-00000
Change-Id: I49ac798b2d044f61ffea0f8545e071010b9e2408
diff --git a/src/com/mirantis/mk/Gerrit.groovy b/src/com/mirantis/mk/Gerrit.groovy
index 954600b..85b0411 100644
--- a/src/com/mirantis/mk/Gerrit.groovy
+++ b/src/com/mirantis/mk/Gerrit.groovy
@@ -370,6 +370,7 @@
*/
def postGerritReview(credentialsId, virtualEnv, repoDir, gitName, gitEmail, gitRemote, gitTopic, gitBranch) {
def python = new com.mirantis.mk.Python()
+ def common = new com.mirantis.mk.Common()
def cmdText = """
GIT_COMMITTER_NAME=${gitName} \
GIT_COMMITTER_EMAIL=${gitEmail} \
@@ -379,7 +380,8 @@
"""
sshagent([credentialsId]) {
dir(repoDir) {
- python.runVirtualenvCommand(virtualEnv, cmdText)
+ res = python.runVirtualenvCommand(virtualEnv, cmdText)
+ common.infoMsg(res)
}
}
}