Merge "[Gerrit] Adding output Gerrit https URL (with hostname)"

This commit is contained in:
Jenkins 2016-06-30 10:46:18 +00:00 committed by Gerrit Code Review
commit 36ba0aee09

View File

@ -80,9 +80,16 @@ Methods:
- $.createAccount('', $.ldap.ldapUser, $.ldap.ldapEmail, $.userSSH, $.ldap.ldapUser)
- $._environment.reporter.report($this, 'Gerrit is deployed.')
- $linux: new(conf:Linux)
- $gerritHost: $linux.runCommand($.instance.agent, 'hostname -f').stdout
- If: $.instance.assignFloatingIp
Then:
- $gerritIP: $.instance.floatingIpAddress
Else:
- $gerritIP: $.instance.ipAddresses[0]
- $._environment.reporter.report($this, format('Gerrit service is launched on host {0} accessing by IP {1}.', $gerritHost, $gerritIP))
- $._environment.reporter.report($this, format('Gerrit is available at http://{0}:80 or http://{0}:8081', $gerritIP))
- $.setAttr(deployed, true)
- $._environment.reporter.report($this, format('Gerrit is available at http://{0}:80 or http://{1}:8081',
$.instance.floatingIpAddress, $.instance.floatingIpAddress))
_deployGerrit:
Body: