File: package-upload.rst

package info (click to toggle)
debusine 0.14.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,200 kB
  • sloc: python: 195,951; sh: 849; javascript: 335; makefile: 116
file content (31 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.. task:: PackageUpload

PackageUpload task
------------------

This server task uploads Debian packages to an upload queue.

It is the equivalent of running ``dput``, but since other parts of
Debusine ensure that the upload is well-formed, there's no need for
most of the complexity of ``dput`` and we can avoid needing an
environment for it.

The ``task_data`` for this task may contain the following keys:

* ``input`` (required): a dictionary describing the input data:

  * ``upload`` (:ref:`lookup-single`, required): a :artifact:`debian:upload`
    artifact

* ``target`` (required): the upload queue, as an ``ftp://`` or
  ``sftp://`` URL

* ``delayed_days`` (integer, optional): the number of days to delay this
  upload; this assumes that the upload queue implements Debian's convention
  of uploading delayed uploads to a ``DELAYED/{n}-day`` queue

The implementation should take care to use a suitable connection
timeout.  An SSH private key should be provided in the ``~/.ssh/``
directory of the user running Debusine.

Used by the :workflow:`package_upload` workflow.