-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from sbesson/bioformats_push
Add a top-level commit to bio-formats-build bumping submodule version
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,15 +85,15 @@ MERGE_OPTIONS="$MERGE_OPTIONS -S $STATUS" | |
cd bio-formats-build | ||
|
||
echo "Merge base repository (no submodule updates)" | ||
scc merge -v $MERGE_OPTIONS --shallow $BASE_BRANCH | ||
scc merge $MERGE_OPTIONS --shallow master | ||
|
||
# Update any changed submodules | ||
git submodule sync | ||
git submodule update --remote --recursive | ||
|
||
echo "Merge all submodules using repository configuration:" | ||
cat "scripts/repositories.yml" | ||
scc merge -v "--repository-config=$(pwd)/scripts/repositories.yml" $MERGE_OPTIONS --update-gitmodules --push $PUSH_BRANCH $BASE_BRANCH | ||
scc merge "--repository-config=$(pwd)/scripts/repositories.yml" $MERGE_OPTIONS --update-gitmodules --push $PUSH_BRANCH master | ||
|
||
echo "Update maven component versions" | ||
update-versions | ||
|
@@ -105,6 +105,11 @@ git submodule foreach "git commit -m 'Update component versions' | |
echo "Push all branches" | ||
user=$(git config github.user) | ||
git submodule foreach "git push -f [email protected]:$user/"'${path}.git'" HEAD:$PUSH_BRANCH" | ||
|
||
echo "Commit all component version changes" | ||
git add -u | ||
git commit -m 'Update component versions' || true | ||
|
||
git push -f [email protected]:$user/bio-formats-build.git HEAD:$PUSH_BRANCH</command> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
|