diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-12-21 13:05:29 +0100 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-12-21 21:31:16 +0000 |
commit | d3e525c8c525d6fadeb074a2d64e57a0b0451ce5 (patch) | |
tree | c1d9d476e93d84e3d90aa2ce37653f24d2111a21 /jjb/fuel/fuel-project-jobs.yml | |
parent | f9ba25e6e9e761123dcd5af1ae1746ed79cba69a (diff) |
Refactor fuel JJB to prepare for Milestone E
Replace default stream definitions with stream anchors in order
to be able to specify which job on which POD runs against which
branch.
Move project specific verify job to its own file to ease the stream
handling.
Enable CI on Ericsson POD2.
Change-Id: I3732b43d8858473535ef5666882ee85124c6d652
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/fuel/fuel-project-jobs.yml')
-rw-r--r-- | jjb/fuel/fuel-project-jobs.yml | 210 |
1 files changed, 210 insertions, 0 deletions
diff --git a/jjb/fuel/fuel-project-jobs.yml b/jjb/fuel/fuel-project-jobs.yml new file mode 100644 index 000000000..3ad28c198 --- /dev/null +++ b/jjb/fuel/fuel-project-jobs.yml @@ -0,0 +1,210 @@ +######################## +# Job configuration for fuel +######################## +- project: + name: fuel-project-jobs + + project: 'fuel' + + installer: 'fuel' + +# only master branch is enabled at the moment to keep no of jobs sane + stream: + - master: + branch: '{stream}' + gs-pathname: '' +# - brahmaputra: +# branch: 'stable/{stream}' +# gs-pathname: '/{stream}' + + jobs: + - 'fuel-verify-build-{stream}' + - 'fuel-merge-build-{stream}' + - 'fuel-merge-deploy-virtual-{stream}' + +######################## +# job templates +######################## +- job-template: + name: 'fuel-verify-build-{stream}' + + concurrent: true + + properties: + - throttle: + enabled: true + max-total: 3 + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - 'ericsson-ca-build-1-defaults' + - fuel-project-parameter: + gs-pathname: '{gs-pathname}' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - ssh-agent-credentials: + users: '{ssh-credentials}' + - timeout: + timeout: 360 + fail: true + + triggers: + - gerrit: + trigger-on: + - patchset-created-event: + exclude-drafts: 'false' + exclude-trivial-rebase: 'false' + exclude-no-code-change: 'false' + - draft-published-event + - comment-added-contains-event: + comment-contains-value: 'recheck' + - comment-added-contains-event: + comment-contains-value: 'reverify' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + readable-message: true + + builders: + - shell: + !include-raw ./fuel-build.sh + - shell: + !include-raw ./fuel-workspace-cleanup.sh + +- job-template: + name: 'fuel-merge-build-{stream}' + + concurrent: true + + properties: + - throttle: + enabled: true + max-total: 2 + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - 'ericsson-ca-build-1-defaults' + - fuel-project-parameter: + gs-pathname: '{gs-pathname}' + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - ssh-agent-credentials: + users: '{ssh-credentials}' + - timeout: + timeout: 360 + fail: true + + triggers: + - gerrit: + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: 'remerge' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + + builders: + - shell: + !include-raw ./fuel-build.sh + - shell: + !include-raw ./fuel-upload-artifact.sh + - shell: + !include-raw ./fuel-workspace-cleanup.sh + +- job-template: + name: 'fuel-merge-deploy-virtual-{stream}' + + concurrent: true + + properties: + - throttle: + enabled: true + max-total: 2 + max-per-node: 1 + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - 'fuel-deploy-virtual-defaults' + - fuel-project-parameter: + gs-pathname: '{gs-pathname}' + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - ssh-agent-credentials: + user: '{ssh-credentials}' + + triggers: + - gerrit: + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: 'remerge' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + dependency-jobs: 'fuel-merge-build-{stream}' + + builders: + - shell: + !include-raw ./fuel-download-artifact.sh + - shell: + !include-raw ./fuel-deploy-virtual.sh + - shell: + !include-raw ./fuel-workspace-cleanup.sh + + publishers: + - email: + recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com + +######################## +# parameter macros +######################## +- parameter: + name: fuel-project-parameter + parameters: + - string: + name: BUILD_DIRECTORY + default: $WORKSPACE/build_output + description: "Directory where the build artifact will be located upon the completion of the build." + - string: + name: CACHE_DIRECTORY + default: $HOME/opnfv/cache/$INSTALLER + description: "Directory where the cache to be used during the build is located." + - string: + name: GS_URL + default: artifacts.opnfv.org/$PROJECT{gs-pathname} + description: "URL to Google Storage." |