Taskotron Quick Start

Add repo

sudo curl https://copr-fe.cloud.fedoraproject.org/coprs/tflink/taskotron/repo/fedora-23/tflink-taskotron-fedora-23.repo \
-o /etc/yum.repos.d/tflink-taskotron-fedora-23.repo

Install

sudo yum install libtaskotron

This will install libtaskotron-core and all of its modules, see detailed install instructions for more information on installing individual modules.

Run

runtask -i <item> -t <type> -a <arch> <yaml formula>

Note

By default, runtask will attempt to execute tasks locally. More command line flags are needed in order to enable disposable clients. More details on running tasks can be found here

Formulae: General Syntax

name: polyjuice potion
desc: potion that allows to take the form of someone else
maintainer: hermione

input:
    args:
        - arg1   # supported args:
        - arg2   # arch, koji_build, bodhi_id, koji_tag

environment:
    rpm:
        - dependency1   # libtaskotron installs these when in production or --local mode,
        - dependency2   # otherwise users are expected to install them on libtaskotron machine

actions:
    - name: pick fluxweed on a full moon
      directivename:              # e.g. koji, bodhi, python, ...
          arg1: value1
          arg2: ${some_variable}  # e.g. input arg
      export: firststep_output    # export usable as input arg of next directive

    - name: next step of formula
      nextdirectivename:
       arg1: ${firststep_output}

Detailed instructions on writing tasks

Formulae: Examples From Our Git

Running Rpmlint

Rpmlint

git clone https://bitbucket.org/fedoraqa/task-rpmlint.git
runtask -i gourmet-0.16.0-2.fc20 -t koji_build -a x86_64 task-rpmlint/rpmlint.yml

Other Examples

Rpmbuild

Example bodhi

Example reporting

Check our git for more.

Table Of Contents

Previous topic

Libtaskotron Documentation

Next topic

Writing Tasks for Taskotron

This Page