2013-12-20 12:55:51 -08:00
|
|
|
= Deploy Gerrit Artifacts
|
2012-07-31 14:30:35 +02:00
|
|
|
|
|
|
|
Gerrit Artifacts are stored on
|
|
|
|
link:https://developers.google.com/storage/[Google Cloud Storage].
|
2013-12-04 17:21:41 +09:00
|
|
|
Via the link:https://code.google.com/apis/console/?noredirect[API Console] the
|
2012-07-31 14:30:35 +02:00
|
|
|
Gerrit maintainers have access to the `Gerrit Code Review` project.
|
|
|
|
This projects host several buckets for storing Gerrit artifacts:
|
|
|
|
|
|
|
|
* `gerrit-api`:
|
|
|
|
+
|
|
|
|
Bucket to store the Gerrit Extension API Jar and the Gerrit Plugin API
|
|
|
|
Jar.
|
|
|
|
|
|
|
|
* `gerrit-maven`:
|
|
|
|
+
|
2013-04-12 17:13:51 +09:00
|
|
|
Bucket to store Gerrit Subproject Artifacts (e.g. `gwtjsonrpc` etc.).
|
2012-07-31 14:30:35 +02:00
|
|
|
|
|
|
|
[[deploy-configuration-settings-xml]]
|
2013-12-20 12:55:51 -08:00
|
|
|
== Deploy Configuration in Maven `settings.xml`
|
2012-07-31 14:30:35 +02:00
|
|
|
|
|
|
|
To upload artifacts to a bucket the user must authenticate with a
|
|
|
|
username and password. The username and password need to be retrieved
|
2013-12-04 17:21:41 +09:00
|
|
|
from the link:https://code.google.com/apis/console/?noredirect[API Console]:
|
2012-07-31 14:30:35 +02:00
|
|
|
|
|
|
|
* Go to the `Gerrit Code Review` project
|
|
|
|
* In the menu on the left select `Google Cloud Storage` >
|
|
|
|
`Interoperable Access`
|
|
|
|
* Use the `Access Key` as username
|
|
|
|
* Click under `Secret` on the `Show` button to find the password
|
|
|
|
|
|
|
|
To make the username and password known to Maven, they must be
|
|
|
|
configured in the `~/.m2/settings.xml` file.
|
|
|
|
|
|
|
|
----
|
|
|
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
|
|
|
<servers>
|
|
|
|
<server>
|
|
|
|
<id>gerrit-api-repository</id>
|
|
|
|
<username>GOOG..EXAMPLE.....EXAMPLE</username>
|
|
|
|
<password>EXAMPLE..EXAMPLE..EXAMPLE</password>
|
|
|
|
</server>
|
|
|
|
<server>
|
|
|
|
<id>gerrit-maven-repository</id>
|
|
|
|
<username>GOOG..EXAMPLE.....EXAMPLE</username>
|
|
|
|
<password>EXAMPLE..EXAMPLE..EXAMPLE</password>
|
|
|
|
</server>
|
|
|
|
<server>
|
|
|
|
<id>gerrit-plugins-repository</id>
|
|
|
|
<username>GOOG..EXAMPLE.....EXAMPLE</username>
|
|
|
|
<password>EXAMPLE..EXAMPLE..EXAMPLE</password>
|
|
|
|
</server>
|
|
|
|
</servers>
|
|
|
|
</settings>
|
|
|
|
----
|
|
|
|
|
|
|
|
[[deploy-configuration-subprojects]]
|
2013-12-20 12:55:51 -08:00
|
|
|
=== Gerrit Subprojects
|
2012-07-31 14:30:35 +02:00
|
|
|
|
|
|
|
* You will need to have the following in the `pom.xml` to make it
|
|
|
|
deployable to the `gerrit-maven` storage bucket:
|
|
|
|
|
|
|
|
----
|
|
|
|
<distributionManagement>
|
|
|
|
<repository>
|
|
|
|
<id>gerrit-maven-repository</id>
|
|
|
|
<name>Gerrit Maven Repository</name>
|
2013-06-21 11:01:45 -07:00
|
|
|
<url>gs://gerrit-maven</url>
|
2012-07-31 14:30:35 +02:00
|
|
|
<uniqueVersion>true</uniqueVersion>
|
|
|
|
</repository>
|
|
|
|
</distributionManagement>
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
* Add this to the `pom.xml` to enable the wagon provider:
|
|
|
|
|
|
|
|
----
|
|
|
|
<build>
|
|
|
|
<extensions>
|
|
|
|
<extension>
|
2013-06-21 11:01:45 -07:00
|
|
|
<groupId>com.googlesource.gerrit</groupId>
|
|
|
|
<artifactId>gs-maven-wagon</artifactId>
|
|
|
|
<version>3.3</version>
|
2012-07-31 14:30:35 +02:00
|
|
|
</extension>
|
|
|
|
</extensions>
|
|
|
|
</build>
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
GERRIT
|
|
|
|
------
|
|
|
|
Part of link:index.html[Gerrit Code Review]
|
2013-10-31 17:26:00 -07:00
|
|
|
|
|
|
|
SEARCHBOX
|
|
|
|
---------
|