Default is to build normally, for fast build:
- If trigger from gerrit, use multipatch-build-fast:<patch-list>
- If trigger manually, set BUILD_FAST parameter to true
Change-Id: I51841a9c8b61c80c31b738d58d93b344d5da8e82
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
cherry-pick 59/60259/17 and build netvirt, finally it will checkout latest distribution
code and build a distribution. The resulting distribution is stored in Nexus and the URL
is stored in a variable called BUNDLE_URL visible in the job console.
cherry-pick 59/60259/17 and build netvirt, finally it will checkout latest distribution
code and build a distribution. The resulting distribution is stored in Nexus and the URL
is stored in a variable called BUNDLE_URL visible in the job console.
+ Use multipatch-build-fast (vs multipatch-build) for building projects fast (-Pq).
This job should not alter Gerrit votes for a given patch, nor will do anything with the
given patch unless the patch is added to the build list.
</td>
This job should not alter Gerrit votes for a given patch, nor will do anything with the
given patch unless the patch is added to the build list.
</td>
# (if not all) available CSIT jobs.
project-type: freestyle
# (if not all) available CSIT jobs.
project-type: freestyle
- node: centos7-builder-4c-4g
+ node: centos7-builder-8c-8g
jdk: '{java-version}'
properties:
jdk: '{java-version}'
properties:
patches_to_build: '$PATCHES_TO_BUILD'
- run-test-parameter:
run-test: 'false'
patches_to_build: '$PATCHES_TO_BUILD'
- run-test-parameter:
run-test: 'false'
+ - build-fast-parameter:
+ build-fast: 'false'
- integration-distribution-branch:
branch: '{branch}'
- integration-distribution-stream:
- integration-distribution-branch:
branch: '{branch}'
- integration-distribution-stream:
server-name: '{gerrit-server-name}'
trigger-on:
- comment-added-contains-event:
server-name: '{gerrit-server-name}'
trigger-on:
- comment-added-contains-event:
- comment-contains-value: 'multipatch-build:'
+ comment-contains-value: 'multipatch-build'
projects:
- project-compare-type: ANT
project-pattern: '**'
projects:
- project-compare-type: ANT
project-pattern: '**'
dist-pom: patch_tester/distribution/pom.xml
- conditional-step:
condition-kind: boolean-expression
dist-pom: patch_tester/distribution/pom.xml
- conditional-step:
condition-kind: boolean-expression
- condition-expression: $RUNTEST
+ condition-expression: $RUN_TEST
steps:
- trigger-builds:
- project: '{csit-list}'
steps:
- trigger-builds:
- project: '{csit-list}'
#
# multipatch-build:openflowplugin:45/69445/1,genius:46/69446/1,netvirt:47/69447/1
if [ -n "$GERRIT_EVENT_COMMENT_TEXT" ]; then
#
# multipatch-build:openflowplugin:45/69445/1,genius:46/69446/1,netvirt:47/69447/1
if [ -n "$GERRIT_EVENT_COMMENT_TEXT" ]; then
- # Grep the multipatch-build: line and then strip from the beginning to the :
- PATCHES_TO_BUILD=$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep 'multipatch-build:')
+ if [[ "$GERRIT_EVENT_COMMENT_TEXT" == *fast* ]]; then
+ BUILD_FAST="true"
+ PATCHES_TO_BUILD=$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep 'multipatch-build-fast:')
+ else
+ BUILD_FAST="false"
+ PATCHES_TO_BUILD=$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep 'multipatch-build:')
+ fi
PATCHES_TO_BUILD=${PATCHES_TO_BUILD#*:}
fi
PATCHES_TO_BUILD=${PATCHES_TO_BUILD#*:}
fi
+if ${BUILD_FAST}; then
+ fast_option="-Pq"
+else
+ fast_option=""
+fi
IFS=',' read -ra PATCHES <<< "${PATCHES_TO_BUILD}"
# For each patch:
IFS=',' read -ra PATCHES <<< "${PATCHES_TO_BUILD}"
# For each patch:
fi
# Build project
"$MVN" clean install \
fi
# Build project
"$MVN" clean install \
-Dstream=oxygen \
-Dgitid.skip=false \
-Dmaven.gitcommitid.skip=false \
-Dstream=oxygen \
-Dgitid.skip=false \
-Dmaven.gitcommitid.skip=false \
name: run-test-parameter
parameters:
- string:
name: run-test-parameter
parameters:
- string:
default: '{run-test}'
description: 'Set true to run test after build'
default: '{run-test}'
description: 'Set true to run test after build'
+- parameter:
+ name: build-fast-parameter
+ parameters:
+ - string:
+ name: BUILD_FAST
+ default: '{build-fast}'
+ description: 'Set true to build fast -Pq'
+
- parameter:
name: distribution-branch-to-build-parameter
parameters:
- parameter:
name: distribution-branch-to-build-parameter
parameters: