obs-service-tar_scm/tar_scm.service
Adrian Schröter 6e55d7df19 Accepting request 105386 from home:aspiers:branches:openSUSE:Tools
- add new 'versionformat' option to determine how version is
  extracted via git show --pretty=... (and similar for svn /
  hg / bzr)
- support caching of cloned repositories to speed up fetch
  from upstream
- use mktemp -u because git/hg refuse to clone into an empty 
  directory on SLES11

OBS-URL: https://build.opensuse.org/request/show/105386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=33
2012-02-16 11:06:33 +00:00

49 lines
2.3 KiB
Desktop File

<service name="tar_scm">
<summary>Create a tar ball from SCM repository</summary>
<description>This service uses a scm client to checkout or update from a given repository. Supported are svn, git, hg and bzr.</description>
<parameter name="scm">
<description>Used SCM</description>
<allowedvalue>svn</allowedvalue>
<allowedvalue>git</allowedvalue>
<allowedvalue>hg</allowedvalue>
<allowedvalue>bzr</allowedvalue>
<required/>
</parameter>
<parameter name="url">
<description>Checkout url</description>
<required/>
</parameter>
<parameter name="subdir">
<description>package just a sub directory</description>
</parameter>
<parameter name="version">
<description>Specify version to be used in tarball. Defaults to automatically detected value formatted by versionformat parameter. If using keep-source, you should set this to a fixed constant which will be used to name the checked out directory.</description>
</parameter>
<parameter name="versionformat">
<description>Auto-generate version from checked out source using this format string. For git, value is passed via git show --pretty=format:... (default '%at'); for hg, via hg log --template=... (default '{rev}'); for bzr and svn, %r is revision (default '%r'). Overrides tarball name defined by version parameter.</description>
</parameter>
<parameter name="versionprefix">
<description>specify a base version as prefix.</description>
</parameter>
<parameter name="revision">
<description>specify a revision</description>
</parameter>
<parameter name="filename">
<description>name of package - used together with version to determine tarball name</description>
</parameter>
<parameter name="exclude">
<description>for specifying excludes when creating the tar ball</description>
</parameter>
<parameter name="include">
<description>for specifying subset of files/subdirectories to pack in the tar ball</description>
</parameter>
<parameter name="package-meta">
<description>Package the meta data of SCM to allow the user or OBS to update after un-tar</description>
<allowedvalue>yes</allowedvalue>
</parameter>
<parameter name="history-depth">
<description>Stored history depth. Special value "full" clones/pulls full history. Only valid if SCM git is used.</description>
</parameter>
</service>