.. _scratch-build:

scratch-build
=============

.. program:: scratch-build

Synopsis
--------

::

    sample-rpkg scratch-build [-h] [--arches [ARCHES [ARCHES ...]]] [--md5]
                              [--nowait] [--target TARGET] [--background]
                              [--fail-fast] [--srpm [SRPM]]

Description
-----------

This command will request a scratch build of the package. Without providing an srpm, it will attempt to build the latest commit, which must have been pushed. By default all appropriate arches will be built.



Options
-------

.. option:: -h --help

   show this help message and exit

.. option:: --arches

   Build for specific arches

.. option:: --md5

   Use md5 checksums (for older rpm hosts)

.. option:: --nowait

   Don't wait on build

.. option:: --target

   Define build target to build into

.. option:: --background

   Run the build at a low priority

.. option:: --fail-fast

   Fail the build immediately if any arch fails

.. option:: --srpm

   Build from an srpm. If no srpm is provided with this option an srpm will be generated from the current module content.