Jakub Josef | 97fd1ab | 2017-08-01 14:12:29 +0200 | [diff] [blame] | 1 | def gerrit = new com.mirantis.mk.Gerrit() |
2 | def ssh = new com.mirantis.mk.Ssh() | ||||
3 | node("python") { | ||||
4 | ssh.prepareSshAgentKey(CREDENTIALS_ID) | ||||
5 | ssh.ensureKnownHosts(GERRIT_HOST) | ||||
6 | ssh.agentSh(String.format("ssh -p 29418 %s@%s gerrit review --verified +1 %s,%s", GERRIT_USERNAME, GERRIT_HOST, GERRIT_CHANGE_NUMBER, GERRIT_PATCHSET_NUMBER)) | ||||
7 | } |