Skip to content

Commit

Permalink
Merge pull request #104 from sbesson/bioformats_push
Browse files Browse the repository at this point in the history
Add a top-level commit to bio-formats-build bumping submodule version
  • Loading branch information
sbesson authored Oct 1, 2018
2 parents 1f1b0bd + cad2b0c commit add8e62
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions home/jobs/BIOFORMATS-push/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>
Expand Down

0 comments on commit add8e62

Please sign in to comment.