blob: 947b17048ac210de41461b818e8f942b3dbc4589 [file] [log] [blame]
Jakub Josef97fd1ab2017-08-01 14:12:29 +02001def gerrit = new com.mirantis.mk.Gerrit()
2def ssh = new com.mirantis.mk.Ssh()
3node("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}