build-days-to-keep: '{build-days-to-keep}'
parameters:
- - patches-to-build-parameter:
- patches_to_build: '$PATCHES_TO_BUILD'
- - build-order-parameter:
- build-order: '{build-order}'
- - build-fast-parameter:
- build-fast: 'false'
- - run-test-parameter:
- run-test: 'false'
+ - string:
+ name: PATCHES_TO_BUILD
+ default: '$PATCHES_TO_BUILD'
+ description: |
+ Ordered list of patches to build in the format of project=changeset (checkout) or
+ project:changeset (cherry-pick) for example: genius=32/53632/9,netvirt:59/50259/47.
+ - string:
+ name: BUILD_ORDER
+ default: '{build-order}'
+ description: 'Build order for multipatch test when topic is used'
+ - string:
+ name: BUILD_FAST
+ default: 'true'
+ description: 'Set true to build fast -Pq'
+ - string:
+ name: BUILD_NORMAL
+ default: ''
+ description: 'List of projects to build normal (no -Pq) when BUILD_FAST=true'
+ - string:
+ name: RUN_TEST
+ default: 'false'
+ description: 'Set true to run test after build'
- integration-distribution-branch:
branch: '{branch}'
- integration-distribution-stream:
fi
PATCHES_TO_BUILD=${PATCHES_TO_BUILD#*:}
fi
-if ${BUILD_FAST}; then
- fast_option="-Pq"
-else
- fast_option=""
-fi
# check if topic exists:
# if topic=binding-rpc, then checkout first patch in binding-rpc topic (if it exists)
# if topic:binding-rpc, then cherry-pick first patch in binding-rpc topic (if it exists)
# Second phase: build everything
for PROJECT_SHORTNAME in "${PROJECTS[@]}"; do
+ # Set Fast build if project is not in BUILD_NORMAL and BUILD_FAST is true
+ if [[ "${BUILD_NORMAL}" != *"${PROJECT_SHORTNAME}"* ]] && ${BUILD_FAST}; then
+ fast_option="-Pq"
+ else
+ fast_option=""
+ fi
pushd "${PROJECT_SHORTNAME}"
# Build project
"$MVN" clean install \
further details.
https://docs.openstack.org/developer/python-openstackclient/
-- parameter:
- name: patches-to-build-parameter
- parameters:
- - string:
- name: PATCHES_TO_BUILD
- default: ''
- description: |
- Ordered list of patches to build in the format of project=changeset (checkout) or
- project:changeset (cherry-pick) for example: genius=32/53632/9,netvirt:59/50259/47.
- A topic is also allowed, for example: topic=binding-tlc-rpc
-
-- parameter:
- name: build-order-parameter
- parameters:
- - string:
- name: BUILD_ORDER
- default: '{build-order}'
- description: 'Build order for multipatch test when topic is used'
-
-- parameter:
- name: build-fast-parameter
- parameters:
- - string:
- name: BUILD_FAST
- default: '{build-fast}'
- description: 'Set true to build fast -Pq'
-
-- parameter:
- name: run-test-parameter
- parameters:
- - string:
- name: RUN_TEST
- default: '{run-test}'
- description: 'Set true to run test after build'
-
- parameter:
name: distribution-branch-to-build-parameter
parameters: