Skip to main content

Run a command when a gerrit patchset is created

Project description

gerritexec

gerritexec is a command line tool listening to gerrit on a designated project. On each new patchset, it will:

  • git clone the project

  • git pull the patchset

  • cd in the git tree and run a script

  • positively review the patchset ( +1 ) if the program exit(0)

  • negatively review the patchset ( -1 ) otherwise

Examples

Positively review all patchsets in the stackforge/puppet-ceph project:

gerritexec --hostname review.openstack.org \
           --username puppetceph \
           --script 'true' \
           --project stackforge/puppet-ceph

Run the integration tests found in the git tree of the stackforge/puppet-ceph project:

gerritexec --hostname review.openstack.org \
           --username puppetceph \
           --script 'bundle exec rake spec:system' \
           --project stackforge/puppet-ceph

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gerritexec-1.0.0.a6.g53e06ae.tar.gz (17.8 kB view details)

Uploaded Source

File details

Details for the file gerritexec-1.0.0.a6.g53e06ae.tar.gz.

File metadata

File hashes

Hashes for gerritexec-1.0.0.a6.g53e06ae.tar.gz
Algorithm Hash digest
SHA256 f11239aa76605c7bd26c44854b619122b2767d5ba03f7e9f100fc66fa07cba72
MD5 84e0ec9af2717e384c37771df212bef0
BLAKE2b-256 7526360dc8031e4bde62c29bab9581f2ad3a2cafa0bf926c8a5376e2049ddb12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page