Merge "Add ci validation script"
[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
70 - job-template:
71     name: 'bluval-daily-{stream}'
72     concurrent: true
73     node: '{build-node}'
74     parameters:
75       - string:
76           name: DEPLOY_SCENARIO
77           default: ''
78       - {'bluval-defaults'}
79
80     wrappers: *wrappers
81     scm:
82       - git:
83           credentials-id: '{jenkins-ssh-credential}'
84           url: '{git-url}/ci-management.git'
85           refspec: ''
86           branches:
87             - 'refs/heads/{branch}'
88           skip-tag: true
89           wipe-workspace: true
90           submodule:
91             disable: true
92             recursive: false
93             timeout: '{submodule-timeout}'
94           choosing-strategy: default
95
96
97     builders:
98       - description-setter:
99           description: "POD: $NODE_NAME"
100       - shell: ./jjb/shell/run_bluval.sh -n "$BLUEPRINT"