c484efd2d31bb638c61e9961b60ac38eb8201885
[ci-management.git] / jjb / akraino-templates / akraino-validation-macros.yaml
1 ---
2 #######
3 # SCM #
4 #######
5 - scm:
6     # Enhanced version of the global-jjb
7     name: validation-infra-gerrit-scm
8     scm:
9       - git:
10           credentials-id: '{jenkins-ssh-credential}'
11           url: '{git-url}'
12           refspec: '{refspec}'
13           branches:
14             - 'refs/{refs_tag}/{stream}'
15           skip-tag: false
16           wipe-workspace: true
17           submodule:
18             recursive: '{submodule-recursive}'
19             timeout: '{submodule-timeout}'
20           choosing-strategy: '{choosing-strategy}'
21
22 ##############
23 # PARAMETERS #
24 ##############
25 - parameter:
26     name: validation-job-parameters
27     parameters:
28       - lf-infra-parameters:
29           project: '{project}'
30           stream: '{stream}'
31           branch: '{branch}'
32
33 - parameter:
34     name: bluval-defaults
35     parameters:
36       - string: &cluster_master_ip
37           name: CLUSTER_MASTER_IP
38           default: ''
39           description: 'IP address to connect to the cluster master'
40       - string: &cluster_ssh_user
41           name: CLUSTER_SSH_USER
42           default: ''
43           description: 'SSH username to connect to the cluster master '
44       - string: &cluster_ssh_password
45           name: CLUSTER_SSH_PASSWORD
46           default: ''
47           description: 'SSH password to connect to the cluster master'
48       - string: &cluster_ssh_key
49           name: CLUSTER_SSH_KEY
50           default: ''
51           description: 'SSH key to connect to the cluster master'
52       - string: &blueprint_name
53           name: BLUEPRINT
54           default: ''
55           description: 'Blueprint used'
56       - string: &layer
57           name: LAYER
58           default: ''
59           description: 'Layer'
60       - string: &version
61           name: VERSION
62           default: ''
63           description: 'Version'
64       - string: &optional
65           name: OPTIONAL
66           default: ''
67           description: 'If set to yes run optional tests'
68       - string:
69           name: LAB_SILO
70           default: ''
71           description: 'Folder in nexus where the logs are pushed.'
72       - string:
73           name: SETTINGS_FILE
74           default: '/home/jenkins/settings.xml'
75           description: 'Path to credentials file'
76
77 - parameter:
78     name: lab_params
79     parameters:
80       - string:
81           <<: *cluster_master_ip
82       - string:
83           <<: *cluster_ssh_user
84       - string:
85           <<: *cluster_ssh_password
86       - string:
87           <<: *cluster_ssh_key
88       - string:
89           <<: *blueprint_name
90       - string:
91           <<: *layer
92       - string:
93           <<: *version
94       - string:
95           <<: *optional
96
97 ############
98 # SETTINGS #
99 ############
100 # settings for jobs run in multijob phases
101 - docker-build-job-settings: &docker-build-job-settings
102     name: docker_build_job_settings
103     current-parameters: false
104     git-revision: true
105     node-parameters: false
106     predefined-parameters: |
107       GERRIT_REFNAME=$GERRIT_REFNAME
108     kill-phase-on: FAILURE
109     abort-all-jobs: false