aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: e23e40cdea2b45a4dc03b898374a8210d74efd06 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
# releng-scripts
This is an AGL job generation tool for [LAVA](https://staging.validation.linaro.org/static/docs/v2/).\
It is written in Python and uses jinja2 templates to generate yaml job files
following the LAVA specifications.

This tool **only** generates jobs. It does not provide a way for submitting jobs to a LAVA server.\
Please refer to the lava-tool [documentation](https://validation.linaro.org/static/docs/v2/lava-tool.html)
for submitting jobs.

## Prerequisites
- Python >= 2.7.1

## Usage instructions
The tool for generating job is located in the ./utils folder, it is named "create-jobs.py".

### create-jobs.py

Command line tool to generate AGL jobs for LAVA.

##### Required arguments:
- Machine name

##### Artifacts fetching from URL:
The tool will create an URL to fetch the build artifacts as follows: "URL_BASE/MACHINE_NAME".

Optionnal extra parameters can be used to extend the URL_BASE: `--jobid` and `--jobidx`.
The fetching URL will then be constructed like this: "URL_BASE/JOB_ID/JOB_INDEX/MACHINE_NAME"


The default URL_BASE is the AGL CI build repo.\
The job id and index parameters sould be passed to create a valid fetching URL from this repo.\
If using another URL these parameters can be omitted.

##### Example:
From default URL (https://download.automotivelinux.org/AGL/upload/ci/):\
`$ ./utils/create-jobs.py raspberrypi3 --jobid 10763 --jobidx 3`\
From other URLs:\
`$ ./utils/create-jobs.py raspberrypi3 --urlbase http://www.baylibre.com/pub/agl/ci/`\
`$ ./utils/create-jobs.py raspberrypi3 --urlbase https://download.automotivelinux.org/AGL/snapshots/master/latest/raspberrypi3/deploy/images/`\
`$ ./utils/create-jobs.py raspberrypi3 --urlbase https://download.automotivelinux.org/AGL/release/dab/4.0.0/raspberrypi3/deploy/images/`

The full list of arguments with default values is available using the helper:\
`$ ./utils/create-jobs.py --help`