Merge "New JJB files for addon-onap project"
[ci-management.git] / jjb / akraino-templates / akraino-jjb-templates.yaml
1 ---
2 #
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License.
7 #
8 # You may obtain a copy of the License at
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # 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.
16 #
17 - job-template:
18     id: akraino-project-stream-release-config
19     name: '{project}-{stream}-release-config'
20     project-type: freestyle
21     node: '{build-node}'
22
23     parameters:
24       - lf-infra-parameters:
25           project: '{project}'
26           branch: '{branch}'
27           stream: '{stream}'
28           lftools-version: '{lftools-version}'
29       - lf-infra-maven-parameters:
30           mvn-opts: '{mvn-opts}'
31           mvn-params: '{mvn-params}'
32           mvn-version: '{mvn-version}'
33           staging-profile-id: '{staging-profile-id}'
34
35     scm:
36       - lf-infra-gerrit-scm:
37           jenkins-ssh-credential: '{jenkins-ssh-credential}'
38           git-url: '{git-url}/{project}.git'
39           refspec: '{refspec}'
40           branch: '{branch}'
41           submodule-recursive: '{submodule-recursive}'
42           choosing-strategy: default
43
44     nexus-shapshot-repo: snapshots
45     builders:
46       - lf-maven-install:
47           mvn-version: '{mvn-version}'
48       - lf-update-java-alternatives:
49           java-version: '{java-version}'
50       - lf-provide-maven-settings:
51           global-settings-file: '{global-settings-file}'
52           settings-file: '{mvn-settings}'
53       - lf-infra-create-netrc:
54           server-id: '{mvn-staging-id}'
55       - inject:
56           properties-content: |
57               MAVEN_REPO_URL={maven-repo-url}
58               REPO_ID={repo-id}
59               GROUP_ID={group-id}
60               UPLOAD_FILES_PATH={upload-files-dir}
61               PROJECT={project}
62       - shell: !include-raw-escape:
63           - ../shell/make-tar.sh
64           - ../global-jjb/shell/common-variables.sh
65           - ../global-jjb/shell/lftools-install.sh
66           - ../global-jjb/shell/deploy-maven-file.sh
67       - lf-provide-maven-settings-cleanup