Store blu-val results in nexus.
[ci-management.git] / jjb / validation / bluval.yaml
1 ---
2 #
3 # Copyright (c) 2019 AT&T Intellectual Property.
4 # Copyright (c) 2019 Enea
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License"); you may
7 # not use this file except in compliance with the License.
8 #
9 # You may obtain a copy of the License at
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 - project:
19     name: bluval
20     project-name: validation
21     project: validation
22     build-node: '{build-node}'
23     group-id: org.akraino.validation
24     refspec: refs/heads/master
25     branch: master
26     view:
27       - project-view
28     blueprint:
29       - iec
30       - rec
31     stream:
32       - master:
33           branch: '{stream}'
34           gs-pathname: ''
35           disabled: false
36     jobs:
37       - bluval-daily-{stream}
38
39 ##############
40 # PARAMETERS #
41 ##############
42 - parameter:
43     name: 'bluval-defaults'
44     parameters:
45       - string:
46           <<: *k8s_master_ip
47       - string:
48           <<: *k8s_ssh_user
49       - string:
50           <<: *k8s_ssh_password
51       - string:
52           <<: *k8s_ssh_key
53       - string: &blueprint_name
54           name: BLUEPRINT
55           default: ''
56           description: 'Blueprint used'
57       - string: &layer
58           name: LAYER
59           default: ''
60           description: 'Layer'
61       - string: &version
62           name: VERSION
63           default: ''
64           description: 'Version'
65       - string: &optional
66           name: OPTIONAL
67           default: ''
68           description: 'If set to yes run optional tests'
69       - string:
70           name: LAB_SILO
71           default: ''
72           description: 'Folder in nexus where the logs are pushed.'
73       - string:
74           name: SETTINGS_FILE
75           default: '/home/jenkins/settings.xml'
76           description: 'Path to credentials file'
77
78 - job-template:
79     name: 'bluval-daily-{stream}'
80     concurrent: true
81     node: '{build-node}'
82     parameters:
83       - string:
84           name: DEPLOY_SCENARIO
85           default: ''
86       - {'bluval-defaults'}
87
88     wrappers: *wrappers
89     scm:
90       - git:
91           credentials-id: '{jenkins-ssh-credential}'
92           url: '{git-url}/validation.git'
93           refspec: ''
94           branches:
95             - 'refs/heads/{branch}'
96           skip-tag: true
97           wipe-workspace: true
98           submodule:
99             disable: true
100             recursive: false
101             timeout: '{submodule-timeout}'
102           choosing-strategy: default
103
104     builders:
105       - description-setter:
106           description: "POD: $NODE_NAME"
107       - lf-infra-create-netrc:
108           server-id: logs
109       - shell: !include-raw-escape:
110         - ../shell/run_bluval.sh
111
112     publishers:
113       - logparser:
114           use-project-rules: true
115           parse-rules: "./bluval/rules.txt"
116           unstable-on-warning: true
117           fail-on-error: true
118           show-graphs: false