| tee -a "$PATCH_DIR/taglist.log"
# Disable SC2154 because we want $path to be the submodule parameter not the shell.
# shellcheck disable=SC2154
-git submodule foreach "echo \$path $(git rev-parse --verify HEAD) ${RELEASE_TAG} \
+git submodule foreach "echo \$path \$(git rev-parse --verify HEAD) ${RELEASE_TAG} \
| tee -a $PATCH_DIR/taglist.log"
echo "$RELEASE_TAG"
set -eu -o pipefail
git checkout -b "${BRANCH,,}" "origin/${BRANCH,,}"
-git submodule foreach git checkout -b "${BRANCH,,}" "origin/${BRANCH,,}"
+
+# TODO: Simplify once stable/nitrogen is no longer supported.
+for module in $(git submodule | awk '{ print $2 }')
+do
+ pushd "$module"
+ if [ "$GERRIT_BRANCH" == "stable/nitrogen" ] && [ "$module" == "yangtools" ]; then
+ git checkout -b "v1.2.x" "origin/v1.2.x"
+ else
+ git checkout -b "${BRANCH,,}" "origin/${BRANCH,,}"
+ fi
+ popd
+done
# Setup Gerrit remove to ensure Change-Id gets set on commit.
git config --global --add gitreview.username "jenkins-releng"
# TODO: Remove once stable/nitrogen is no longer supported.
if [ "$GERRIT_BRANCH" == "stable/nitrogen" ] && [ "$module" == "yangtools" ]; then
git format-patch --stdout "origin/v1.2.x" > "$patch_dir/${module//\//-}.patch"
+ git bundle create "$patch_dir/${module//\//-}.bundle" "origin/v1.2.x..HEAD"
else
git format-patch --stdout "origin/${BRANCH,,}" > "$patch_dir/${module//\//-}.patch"
+ git bundle create "$patch_dir/${module//\//-}.bundle" "origin/${BRANCH,,}..HEAD"
fi
- git bundle create "$patch_dir/${module//\//-}.bundle" "origin/${BRANCH,,}..HEAD"
popd
done
upload-files-dir: '{upload-files-dir}'
maven-repo-url: '{maven-repo-url}'
+ triggers:
+ - gerrit:
+ server-name: '{server-name}'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'build-rpm-direct'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'pacakges/**'
+
publishers:
- lf-infra-publish
triggers:
- timed: '@daily'
+ - gerrit:
+ server-name: '{server-name}'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'build-rpm-snap'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'pacakges/**'
publishers:
- lf-infra-publish
upload-files-dir: '{upload-files-dir}'
maven-repo-url: '{maven-repo-url}'
+ triggers:
+ - gerrit:
+ server-name: '{server-name}'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'build-deb'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'pacakges/**'
publishers:
- lf-infra-publish
templates: docker
- platforms: ubuntu-14.04
templates: mininet-ovs-2.5
+ - platforms: ubuntu-14.04
+ templates: mininet-ovs-2.6
- platforms: ubuntu-16.04
templates: java-builder
- platforms: ubuntu-16.04