3 id: akraino-project-stream-type-ta
4 name: '{project-name}-{stream}-{project-type}'
13 work/tmp/rpms/mock_config/**
14 build-days-to-keep: 30
18 project-type: freestyle
19 submodule-recursive: true
23 - lf-infra-properties:
25 build-days-to-keep: '{build-days-to-keep}'
28 - lf-infra-parameters:
32 lftools-version: '{lftools-version}'
37 name: ARCHIVE_ARTIFACTS
38 default: '{archive-artifacts}'
39 description: Artifacts to archive to the logs server.
43 build-timeout: '{build-timeout}'
44 jenkins-ssh-credential: '{jenkins-ssh-credential}'
47 - ta-lf-infra-gerrit-scm:
48 jenkins-ssh-credential: '{jenkins-ssh-credential}'
49 git-url: '{git-url}/{project}.git'
50 refspec: '$GERRIT_REFSPEC'
51 branch: '$GERRIT_BRANCH'
52 submodule-recursive: '{submodule-recursive}'
53 submodule-timeout: '{submodule-timeout}'
54 choosing-strategy: 'gerrit'
55 basedir: '$GERRIT_PROJECT'
58 - ta-trigger-job-{project-type}:
59 gerrit-server-name: '{gerrit-server-name}'
64 - ta-builder-install-docker
65 - ta-builder-job-{project-type}:
69 - ta-publisher-job-{project-type}
72 id: akraino-project-stream-type-ta-rpmbuilder
73 name: '{project-name}-{stream}-{project-type}'
82 work/tmp/rpms/mock_config/**
83 build-days-to-keep: 30
87 project-type: freestyle
88 submodule-recursive: true
92 - lf-infra-properties:
94 build-days-to-keep: '{build-days-to-keep}'
97 - lf-infra-parameters:
101 lftools-version: '{lftools-version}'
103 - ta-parameters-ci-{project-name}
106 name: ARCHIVE_ARTIFACTS
107 default: '{archive-artifacts}'
108 description: Artifacts to archive to the logs server.
112 build-timeout: '{build-timeout}'
113 jenkins-ssh-credential: '{jenkins-ssh-credential}'
116 - ta-lf-infra-gerrit-scm:
117 jenkins-ssh-credential: '{jenkins-ssh-credential}'
118 git-url: '{git-url}/{project}.git'
119 refspec: '$GERRIT_REFSPEC'
120 branch: '$GERRIT_BRANCH'
121 submodule-recursive: '{submodule-recursive}'
122 submodule-timeout: '{submodule-timeout}'
123 choosing-strategy: 'gerrit'
124 basedir: '$GERRIT_PROJECT'
127 - ta-trigger-job-{project-type}:
128 gerrit-server-name: '{gerrit-server-name}'
133 - ta-builder-job-{project-type}-{project-name}:
140 id: akraino-project-stream-type-ta-build
141 name: '{project-name}-{stream}-{project-type}'
150 work/tmp/rpms/mock_config/**
151 build-days-to-keep: 30
155 project-type: freestyle
156 submodule-recursive: true
160 - lf-infra-properties:
162 build-days-to-keep: '{build-days-to-keep}'
165 - lf-infra-parameters:
169 lftools-version: '{lftools-version}'
172 name: ARCHIVE_ARTIFACTS
173 default: '{archive-artifacts}'
174 description: Artifacts to archive to the logs server.
178 build-timeout: '{build-timeout}'
179 jenkins-ssh-credential: '{jenkins-ssh-credential}'
182 - ta-lf-infra-gerrit-scm:
183 jenkins-ssh-credential: '{jenkins-ssh-credential}'
184 git-url: '{git-url}/{project}.git'
185 refspec: '$GERRIT_REFSPEC'
186 branch: '$GERRIT_BRANCH'
187 submodule-recursive: '{submodule-recursive}'
188 submodule-timeout: '{submodule-timeout}'
189 choosing-strategy: 'gerrit'
190 basedir: '$GERRIT_PROJECT'
193 - ta-trigger-job-{project-type}:
194 gerrit-server-name: '{gerrit-server-name}'
200 # TODO: verify ISO creation here
206 # TODO: This is untested draft to start testing ISO build from
207 id: akraino-project-release-ta-build
217 build-days-to-keep: 30
221 project-type: freestyle
222 submodule-recursive: true
226 - lf-infra-properties:
228 build-days-to-keep: '{build-days-to-keep}'
231 - lf-infra-parameters:
235 lftools-version: '{lftools-version}'
237 - ta-parameters-manifest
238 - ta-parameters-build-tools
241 name: ARCHIVE_ARTIFACTS
242 default: '{archive-artifacts}'
243 description: Artifacts to archive to the logs server.
247 build-timeout: '{build-timeout}'
248 jenkins-ssh-credential: '{jenkins-ssh-credential}'
250 # TODO: define how it should be triggered
251 # Ideally should build whenever RPM is uploaded to nexus
258 project: 'ta/manifest'
259 ref: '$SCM_REFSPEC_MANIFEST'
262 project: 'ta/build-tools'
263 ref: '$SCM_REFSPEC_BUILD_TOOLS'
264 - ta-builder-install-docker
266 sudo yum -y install createrepo
267 ta/build-tools/build_images.sh -m ta/manifest -w work
269 - ta-lf-infra-ship-isos