2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2021 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
21 name: jenkins-slave-update-job
31 image: 'cloud-infra-base-ubuntu1804'
32 openstack-project: 'CICD'
34 - 'nordix-nsm-build-server':
35 image: 'nordix-nsm-build-ubuntu1804'
36 openstack-project: 'CICD'
39 image: 'onap-uds-build-ubuntu1804'
40 openstack-project: 'CICD'
42 - 'nordix-onap-jenkins-build-server':
43 image: 'onap-build-ubuntu1804'
44 openstack-project: 'DefaultProject34201'
46 - 'oransc-build-server':
47 image: 'oransc-build-ubuntu2004'
48 openstack-project: 'DefaultProject34201'
50 - 'geode-build-server1804':
51 image: 'geode-build-ubuntu1804'
52 openstack-project: 'DefaultProject34201'
54 - 'geode-build-server2004':
55 image: 'geode-build-ubuntu2004'
56 openstack-project: 'DefaultProject34201'
58 - 'infra-build-ubuntu2004':
59 image: 'infra-build-ubuntu2004'
60 openstack-project: 'DefaultProject34201'
64 - jenkins-slave-update-{target}-{stream}
67 name: jenkins-slave-update-{target}-{stream}
69 node: packer-ubuntu1804
79 - nordix-gerrit-parameters
83 description: 'Packer version.'
87 description: 'Target project name.'
91 description: 'Image name to build.'
98 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
105 - nordix-gerrit-trigger-change-merged:
108 files: 'infra/jenkins/slave-setup/{target}/**'
113 - fix-workspace-permissions
117 - credentials-binding:
119 credential-id: '{openstack-project}-openrc-{region}'
120 variable: OPENRC_FILE
125 /bin/rm -f /tmp/openrc
126 /bin/cp -f $OPENRC_FILE /tmp/openrc
128 !include-raw-escape: ./update-jenkins-slave.sh
131 /bin/rm -f /tmp/openrc