diff options
author | Luc Provoost <luc.provoost@intel.com> | 2021-02-18 13:42:26 +0100 |
---|---|---|
committer | Luc Provoost <luc.provoost@intel.com> | 2021-02-18 13:42:26 +0100 |
commit | 4a0b52a22f544467ec50ca429efcf3dc3ea16fb3 (patch) | |
tree | 4cf68c526fe204ff3668e31d8f6dfbe0b6e67843 /jjb/samplevnf | |
parent | bdcb5a8b9ff0eaa9ea16143e05b6b62a1d35cba9 (diff) |
Adding file to build rapid vm qcow2 image
Adding this yaml file so it will trigger the automatic build of a qcow2
image to be published on http://artifacts.opnfv.org/samplevnf/images.
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
Change-Id: I4956d3ab6be62447284a992832abe185a437ee76
Diffstat (limited to 'jjb/samplevnf')
-rw-r--r-- | jjb/samplevnf/samplevnf.yaml | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/jjb/samplevnf/samplevnf.yaml b/jjb/samplevnf/samplevnf.yaml new file mode 100644 index 000000000..77f89c562 --- /dev/null +++ b/jjb/samplevnf/samplevnf.yaml @@ -0,0 +1,100 @@ +--- +- project: + name: samplevnf + + project: '{name}' + + jobs: + - 'rapid-prox-build-{stream}' + - 'rapid-prox-verify-{stream}' + + stream: + - master: + branch: '{stream}' + gs-pathname: '' + docker-tag: 'latest' + disabled: false + - jerma: + branch: 'stable/{stream}' + gs-pathname: '/{stream}' + docker-tag: 'stable' + disabled: false + +- job-template: + name: 'rapid-prox-build-{stream}' + + disabled: '{obj:disabled}' + + parameters: + - project-parameter: + project: '{project}' + branch: '{branch}' + # yamllint disable rule:line-length + - string: + name: GIT_BASE + default: https://gerrit.opnfv.org/gerrit/$PROJECT + description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW." + # yamllint enable rule:line-length + - 'opnfv-build-ubuntu-defaults' + + scm: + - git-scm-gerrit + + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - change-merged-event + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + + builders: + - shell: | + cd $WORKSPACE/rapidvm/dib + bash build-image.sh + +- job-template: + name: 'rapid-prox-verify-{stream}' + + disabled: '{obj:disabled}' + + parameters: + - project-parameter: + project: '{project}' + branch: '{branch}' + # yamllint disable rule:line-length + - string: + name: GIT_BASE + default: https://gerrit.opnfv.org/gerrit/$PROJECT + description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW." + # yamllint enable rule:line-length + - 'opnfv-build-ubuntu-defaults' + + scm: + - git-scm-gerrit + + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - patchset-created-event: + exclude-drafts: 'false' + exclude-trivial-rebase: 'false' + exclude-no-code-change: 'false' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + + builders: + - shell: | + sudo pip install tox-pip-version + cd $WORKSPACE && tox + cd $WORKSPACE/rapidvm/dib + bash verify-image.sh -v |