blob: b98e497e644974a1a67df597b24a6ba9e6d39aeb [file] [log] [blame]
Ivan Udovichenkodefb2de2018-09-26 14:47:05 +03001#
2# Job to collect oscap results based on input benchmarks
3#
4parameters:
5 jenkins:
6 client:
7 job:
8 run-openscap-xccdf-evaluation:
9 type: workflow-scm
10 concurrent: true
11 discard:
12 build:
13 keep_num: 10
14 artifact:
15 keep_num: 10
16 display_name: "Run openscap xccdf evaluation on given nodes"
17 scm:
18 type: git
19 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
20 branch: "${_param:jenkins_pipelines_branch}"
21 credentials: "gerrit"
22 script: test-openscap-pipeline.groovy
23 param:
Pavlo Shchelokovskyyf8915882018-10-08 17:11:54 +030024 OPENSCAP_TEST_TYPE:
25 type: choice
26 description: "Type of tests to run"
27 choices:
28 - xccdf
29 - oval
Ivan Udovichenkodefb2de2018-09-26 14:47:05 +030030 DASHBOARD_API_URL:
31 type: string
32 default: ""
33 description: "The WORP api base url. Mandatory if UPLOAD_TO_DASHBOARD is true"
34 SALT_MASTER_URL:
35 type: string
36 default: ""
37 SALT_MASTER_CREDENTIALS:
38 type: string
Vasyl Saienko04d144f2018-10-01 09:55:29 +030039 default: "salt-qa-credentials"
Ivan Udovichenkodefb2de2018-09-26 14:47:05 +030040 TARGET_SERVERS:
41 type: string
42 default: '*'
43 description: "The target Salt nodes"
44 UPLOAD_TO_DASHBOARD:
45 type: boolean
46 default: "false"
47 description: "Upload results to the WORP or not"
48 XCCDF_BENCHMARKS:
49 type: string
50 default: "cis_ubuntu_1604_server_l2/cis_ubuntu_1604_server_l2-xccdf.xml,default"
51 description: "List of pairs XCCDF benchmark filename and corresponding profile, format xccdf_benchmark 1, profile; xccdf_benchmark 2, profile"
52 XCCDF_BENCHMARKS_DIR:
53 type: string
54 default: "/usr/share/xccdf-benchmarks/mirantis/"
55 description: "The XCCDF benchmarks base directory"
56 XCCDF_VERSION:
57 type: string
58 default: "1.2"
59 description: "The XCCDF version"
60 XCCDF_TAILORING_ID:
61 type: string
62 default: "None"
63 description: "The tailoring id"