forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec: Add git SHA to pact file consumer version.
test plan: - use the bin/contracts-publish-api file to publish a pact file to the pact broker - verify the SHA on the broker matches the HEAD SHA on your current branch using `git log` Change-Id: I69a08a2e4fb735d1f211fb29d860f829c75113fd Reviewed-on: https://gerrit.instructure.com/156448 Tested-by: Jenkins Reviewed-by: Deepeeca Soundarrajan <[email protected]> Reviewed-by: Anju Reddy <[email protected]> Product-Review: Anju Reddy <[email protected]> QA-Review: Anju Reddy <[email protected]>
- Loading branch information
Robert Lamb
authored and
Anju Reddy
committed
Jul 7, 2018
1 parent
510e76e
commit b811f3e
Showing
2 changed files
with
37 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
scriptname=$0 | ||
|
||
if [ -z "$1" ]; then | ||
echo Usage: $scriptname version | ||
exit | ||
else | ||
version=$1 | ||
fi | ||
|
||
echo "This will tag your specified version of the Generic Consumer pact file on" | ||
echo "inst-pact-broker.inseng.net as the 'prod' version. This tag will signal" | ||
echo "the canvas__contract-tests CI build to use your pact file version to" | ||
echo "test every new Canvas patchset." | ||
echo | ||
echo "Are you sure? (yes/no)" | ||
read confirm | ||
|
||
if [ $confirm != "yes" ]; then | ||
echo Aborting. | ||
exit | ||
fi | ||
|
||
set -e | ||
|
||
bundle exec pact-broker create-version-tag \ | ||
-a "Generic Consumer" \ | ||
-b https://inst-pact-broker.inseng.net \ | ||
-e $version \ | ||
-t prod |