]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Add plugin build job 39/41339/3
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Tue, 4 Jun 2019 09:34:40 +0000 (13:34 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Wed, 5 Jun 2019 21:27:52 +0000 (01:27 +0400)
Change-Id: I6b9982eb47572f48f5dfd3a481c662c45dd3b9fb

maintenance-ci/mos/jobs/build-fuel-plugins.yaml [new file with mode: 0644]
maintenance-ci/mos/macroses/fuel-infra-gerrit.yaml [new file with mode: 0644]
maintenance-ci/mos/scripts/build-fuel-plugins.sh [new file with mode: 0644]
maintenance-ci/mos/templates/build-fuel-plugins.yaml [new file with mode: 0644]

diff --git a/maintenance-ci/mos/jobs/build-fuel-plugins.yaml b/maintenance-ci/mos/jobs/build-fuel-plugins.yaml
new file mode 100644 (file)
index 0000000..91aa568
--- /dev/null
@@ -0,0 +1,6 @@
+- project:
+    name: 'build Fuel 9.0 plugins'
+    jobs:
+    - mos/templates/build-fuel-plugins:
+        version-id: '9.0'
+        repo_branch: 'stable/mitaka'
diff --git a/maintenance-ci/mos/macroses/fuel-infra-gerrit.yaml b/maintenance-ci/mos/macroses/fuel-infra-gerrit.yaml
new file mode 100644 (file)
index 0000000..c8dc042
--- /dev/null
@@ -0,0 +1,9 @@
+- scm:
+    name: fuel-infra-gerrit
+    scm:
+      - git:
+         url: 'ssh://review.fuel-infra.org:29418/openstack/{reponame}.git'
+         branches:
+          - '{repobranch}'
+         basedir: '{basedir}'
+         credentials-id: openstack-ci-jenkins
diff --git a/maintenance-ci/mos/scripts/build-fuel-plugins.sh b/maintenance-ci/mos/scripts/build-fuel-plugins.sh
new file mode 100644 (file)
index 0000000..015a10f
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -e
+
+source /etc/profile
+
+HOTPLUGGABLE_V4_PATH="./examples/fuel_plugin_example_v4_hotpluggable"
+rm -rf $HOTPLUGGABLE_V4_PATH
+cp -r ./examples/fuel_plugin_example_v4 $HOTPLUGGABLE_V4_PATH
+sed -i -e "s/is_hotpluggable: false/is_hotpluggable: true/g" $HOTPLUGGABLE_V4_PATH/metadata.yaml
+sed -i -e "s/fuel_plugin_example_v4/fuel_plugin_example_v4_hotpluggable/g" $HOTPLUGGABLE_V4_PATH/metadata.yaml
+
+./run_tests.sh -F
diff --git a/maintenance-ci/mos/templates/build-fuel-plugins.yaml b/maintenance-ci/mos/templates/build-fuel-plugins.yaml
new file mode 100644 (file)
index 0000000..59d7690
--- /dev/null
@@ -0,0 +1,56 @@
+- job-template:
+    name: '{version-id}.build-fuel-plugins'
+    id: mos/templates/build-fuel-plugins
+    description: |
+        Build {version-id}.plugins for Fuel plugins project.
+    builders:
+        - shell:
+            !include-raw-escape: ../scripts/build-fuel-plugins.sh
+    build-discarder:
+        artifactNumToKeep: 1
+        numToKeep: 1
+    node: jenkins-master
+    concurrent: true
+    properties:
+    - heavy-job:
+            weight: 1
+    publishers:
+    - archive:
+        allow-empty: true
+        artifacts: 'built_plugins/*.fp, built_plugins/*.rpm'
+        latest-only: false
+    - description-setter:
+        regexp: '(<a href=.*a>)'
+    scm:
+    - git:
+        url: 'https://opendev.org/openstack/fuel-plugins'
+        branches:
+        - origin/master
+        basedir: ''
+        credentials-id: openstack-ci-jenkins
+    - fuel-infra-gerrit:
+        reponame: fuel-plugin-detach-database
+        repobranch: origin/{repo_branch}
+        basedir: examples/fuel-plugin-detach-database
+    - fuel-infra-gerrit:
+        reponame: fuel-plugin-detach-rabbitmq
+        repobranch: origin/{repo_branch}
+        basedir: examples/fuel-plugin-detach-rabbitmq
+    - fuel-infra-gerrit:
+        reponame: fuel-plugin-detach-keystone
+        repobranch: origin/{repo_branch}
+        basedir: examples/fuel-plugin-detach-keystone
+    - fuel-infra-gerrit:
+        reponame: fuel-plugin-detach-haproxy
+        repobranch: origin/{repo_branch}
+        basedir: examples/fuel-plugin-detach-haproxy
+    - fuel-infra-gerrit:
+        reponame: fuel-plugin-external-lb
+        repobranch: origin/{repo_branch}
+        basedir: examples/fuel-plugin-external-lb
+    wrappers:
+    - ansicolor:
+        colormap: xterm
+    - timeout:
+        fail: true
+        timeout: 10