Gather macros used by jobs in same file
Nearly all the jobs use same macros so it is better to move
them to a file to ease the handling of them.
Change-Id: I46a9b1f7f1894b8994332f7dc42d7676043faf3b
diff --git a/jjb/cloud-infra/cloud-infra-macros.yaml b/jjb/cloud-infra/cloud-infra-macros.yaml
new file mode 100644
index 0000000..d5df7fc
--- /dev/null
+++ b/jjb/cloud-infra/cloud-infra-macros.yaml
@@ -0,0 +1,52 @@
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# macros used by all job types
+- builder:
+ name: 'cloud-infra-deploy-macro'
+ builders:
+ - shell:
+ !include-raw: ./wait-for-pkg-manager.sh
+ - shell:
+ !include-raw: ./cloud-infra-deploy.sh
+
+- builder:
+ name: 'cloud-infra-functest-macro'
+ builders:
+ - shell:
+ !include-raw: ./prepare-for-test.sh
+ - shell:
+ !include-raw: ./cloud-infra-test.sh
+
+- builder:
+ name: 'cloud-infra-yardstick-macro'
+ builders:
+ - shell:
+ !include-raw: ./prepare-for-test.sh
+ - shell:
+ !include-raw: ./cloud-infra-test.sh
+
+- builder:
+ name: 'cloud-infra-testfw-macro'
+ builders:
+ - shell:
+ !include-raw: ./cloud-infra-test.sh
+
+# vim: set ts=2 sw=2 expandtab: