### Plugin Installation Response Source: https://review.lineageos.org/Documentation/rest-api-plugins.html Example response returned after a successful plugin installation. ```http HTTP/1.1 201 Created Content-Disposition: attachment Content-Type: application/json;charset=utf-8 Content-Length: 150 )]}' { "id": "delete-project", "version": "v2.16-221-g35bb8bbac4", "index_url": "plugins/delete-project/", "filename": "delete-project.jar" } ``` -------------------------------- ### Build and Install Snapshot Source: https://review.lineageos.org/Documentation/dev-release-subproject.html Builds the latest snapshot and installs it into the local Maven repository. ```bash mvn clean install ``` -------------------------------- ### Install Plugin from URL Source: https://review.lineageos.org/Documentation/cmd-plugin-install.html Downloads and installs a plugin from a specified HTTP or FTP URL. ```bash ssh -p 29418 localhost gerrit plugin install -n name.jar http://build-server/output/our-plugin ``` -------------------------------- ### Index changes in project example Source: https://review.lineageos.org/Documentation/cmd-index-changes-in-project.html Example command to index all changes for the projects MyProject and NiceProject. ```bash $ ssh -p 29418 user@review.example.com gerrit index changes-in-project MyProject NiceProject ``` -------------------------------- ### Specific Example of Obtaining the Hook Source: https://review.lineageos.org/Documentation/cmd-hook-commit-msg.html A concrete example of downloading the hook script to a local project directory. ```bash $ scp -p -P 29418 john.doe@review.example.com:hooks/commit-msg ~/duhproject/.git/hooks/ $ curl -Lo ~/duhproject/.git/hooks/commit-msg http://review.example.com/tools/hooks/commit-msg ``` -------------------------------- ### Example project.config file structure Source: https://review.lineageos.org/Documentation/config-project-config.html A comprehensive example showing project settings, access rules, label definitions, and submit requirements. ```ini [project] description = Collection of scripts for setting up foo bar. [access "refs/*"] read = group Registered Users [access "refs/heads/*"] label-Code-Review = -2..+2 group Maintainers label-Code-Review = -1..+1 group Registered Users label-Your-Label = -1..+1 group Maintainers [receive] requireChangeId = true [label "Your-Label"] function = NoOp value = -1 Your -1 Description value = 0 Your No score Description value = +1 Your +1 Description [submit-requirement "Your-Label"] description = At least one maximum vote for label 'Your-Label' is required applicableIf = -branch:refs/meta/config submittableIf = label:Your-Label=MAX AND -label:Your-Label=MIN ``` -------------------------------- ### Change Project HEAD Example Source: https://review.lineageos.org/Documentation/cmd-set-head.html Example command to update the HEAD of the 'example' project to the 'stable-2.11' branch. ```bash $ ssh -p 29418 review.example.com gerrit set-head example --new-head stable-2.11 ``` -------------------------------- ### Install API to Maven Repository Source: https://review.lineageos.org/Documentation/dev-bazel.html Install API components or the WAR file to the local Maven repository. ```bash tools/maven/api.sh install ``` ```bash tools/maven/api.sh war_install ``` -------------------------------- ### Install Plugin from Piped Input Source: https://review.lineageos.org/Documentation/cmd-plugin-install.html Installs a plugin by piping the file content directly into the command. ```bash ssh -p 29418 localhost gerrit plugin install -n name.jar -