lava: Upload artifacts as a separate test
[lttng-ci.git] / scripts / system-tests / template_lava_job.jinja2
CommitLineData
4c3d6586 1device_type: x86
6b9bcf12
JR
2job_name: {{ job_name }}
3timeouts:
4 job:
afd608b2 5 hours: 5
33f6fe56 6 action:
afd608b2 7 hours: 5
33f6fe56
JR
8 connection:
9 minutes: 4
10 connections:
11 lava-test-shell:
12 minutes: 4
6b9bcf12
JR
13priority: medium
14visibility: public
6b9bcf12 15context:
620516c2 16 extra_kernel_args: cpuidle.off=1
5a6608da 17 extra_nfsroot_args: ",nfsvers=3 nfsrootdebug"
620516c2 18
9bc7deb8
KS
19environment:
20 SHELL: "/bin/bash"
21
e8ca2f76 22{% if device_type == DeviceType.kvm %}
4c3d6586
JR
23tags:
24 - qemu
4cb5cc4f
JR
25{% endif %}
26{% if device_type == DeviceType.x86 %}
6b9bcf12
JR
27tags:
28 - dev-sda1
4cb5cc4f 29{% endif %}
6b9bcf12
JR
30
31metadata:
4cb5cc4f 32 jenkins_jobname: {{ job_name }}
6b9bcf12
JR
33
34
35actions:
9665810d
JR
36 - deploy:
37 timeout:
38 minutes: 10
39 to: tftp
40 kernel:
41 url: {{ kernel_url }}
42 type: zimage
9665810d
JR
43 modules:
44 url: {{ lttng_modules_url }}
9665810d
JR
45 compression: gz
46 nfsrootfs:
47 url: {{ nfsrootfs_url }}
48 compression: gz
6b9bcf12 49
9665810d
JR
50 - boot:
51 timeout:
52 minutes: 10
9665810d 53 method: ipxe
d2fdefc4 54 commands: nfs
ca08dcdf
JR
55 auto_login:
56 login_prompt: 'login:'
57 username: root
58 password_prompt: 'Password:'
59 password: root
9665810d
JR
60 prompts:
61 - 'root@linaro-server:~#'
9665810d
JR
62
63 - test:
64 definitions:
9151e32e 65 # Base setup #
ef50ca2a 66 - repository: {{ ci_repo }}
9151e32e 67 from: git
ef50ca2a 68 branch: {{ ci_branch }}
9151e32e
JR
69 path: lava/system-tests/setup.yml
70 name: x86-env-setup
ef50ca2a
KS
71 params:
72 CI_REPO: {{ ci_repo }}
73 CI_BRANCH: {{ ci_branch }}
9151e32e 74 # Base vlttng setup #
9665810d
JR
75 - repository:
76 metadata:
77 format: Lava-Test Test Definition 1.0
67aaab3c
KS
78 name: vlttng-env-setup
79 description: "Configure virtualenv for vlttng"
9665810d
JR
80 os:
81 - ubuntu
82 devices:
83 - x86
67aaab3c 84 - kvm
9665810d
JR
85 run:
86 steps:
9665810d
JR
87 {% if device_type == DeviceType.x86 %}
88 - mount /dev/sda1 /tmp
e640b6d8
JR
89 {% elif device_type == DeviceType.kvm %}
90 - mount /dev/sda /tmp
c11ec858 91 {% endif %}
e640b6d8 92 - rm -rf /tmp/*
9665810d
JR
93 - {{ vlttng_cmd }}
94 - ln -s {{ vlttng_path }} /root/lttngvenv
95 - sync
9665810d 96 from: inline
448803d6 97 name: vlttng-env-setup-inline
67aaab3c 98 path: inline/vlttng-env-setup
523e784d 99 {% if test_type == TestType.baremetal_tests %}
ef50ca2a 100 - repository: {{ ci_repo }}
9665810d 101 from: git
ef50ca2a 102 branch: {{ ci_branch }}
9665810d
JR
103 path: lava/system-tests/perf-tests.yml
104 name: perf-tests
6b35e57c 105 params:
cf1271bb 106 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 107 JENKINS_BUILD_ID: {{ jenkins_build_id }}
ef50ca2a
KS
108 CI_REPO: {{ ci_repo }}
109 CI_BRANCH: {{ ci_branch }}
9665810d 110 {% elif test_type == TestType.kvm_tests %}
ef50ca2a 111 - repository: {{ ci_repo }}
9665810d 112 from: git
ef50ca2a 113 branch: {{ ci_branch }}
9665810d
JR
114 path: lava/system-tests/kernel-tests.yml
115 name: kernel-tests
6b35e57c 116 params:
cf1271bb 117 LTTNG_VERSION_STRING: {{ lttng_version_string }}
6b35e57c 118 JENKINS_BUILD_ID: {{ jenkins_build_id }}
ef50ca2a
KS
119 CI_REPO: {{ ci_repo }}
120 CI_BRANCH: {{ ci_branch }}
9665810d 121 {% endif %}
a593b7fa
KS
122 - repository: {{ ci_repo }}
123 from: git
124 branch: {{ ci_branch }}
125 path: lava/system-tests/upload-artifacts.yml
126 name: upload-artifacts
127 params:
128 LTTNG_VERSION_STRING: {{ lttng_version_string }}
129 JENKINS_BUILD_ID: {{ jenkins_build_id }}
130 CI_REPO: {{ ci_repo }}
131 CI_BRANCH: {{ ci_branch }}
This page took 0.035298 seconds and 4 git commands to generate.