Before making a public release, we should test for a couple of days by using the version of the plugin in the garage plugin repo. All passing builds will be pushed to the staging repo automatically by the IBM Cloud DevOps Pipeline.
-
Update the markdown description in
.releaseDescription
to reflect the release contents. -
If this is more (or less) than an minor release, update the semantic version in
.version
. -
Check the output of the latest build is green.
-
Manually run the 'Git release' build stage. Under the covers, that will do the following:
-
Tag a new revision using semver:
git tag vX.X.X
-
Create a new github release and upload the binaries
-
Bump the
PLUGIN_VERSION
variable in.version
to the next minor increment, ready for the next release -
Follow the instructions for submitting a plugin You need to update the following in
repo-index.yml
undercf-blue-green-deploy
. Use the output from the build job, which will include:- version
- updated timestamp
- url - this should be
https://github.com/bluemixgaragelondon/new_plugin/releases/download/vX.X.X/blue-green-deploy.PLATFORM
- sum - copied from the garage staging repo as this version will have passed all of the testing.
You can run the acceptance tests on any cloud foundry installation by following these steps:
-
Edit
.env
:-
Update the
CF_URL="api.eu-gb.bluemix.net"
to match your cloud foundry api url. -
replace the values of
CF_USERNAME
andCF_ORG
with your username and organization name (for a personal bluemix account this is typically your email address). -
set the value of
CF_SPACE
to the name of a space in your org where the test should run. If it does not exist it will be created. -
set the value of
TEST_ACCEPTANCE_APP_NAME
andTEST_ACCEPTANCE_APP_HOSTNAME
to any unique values that are valid for the test app domain (eg. eu-gb.mybluemix.net).
-
-
Source
.env
to your shell. -
Edit
acceptance/app/manifest.yml
. It governs the example app that is pushed during the acceptance test.-
Either remove the
hosts:
section, or provide at least one unique hostname. -
Provide at least one domain. In the
domains:
section, use any domain that is available to your cloud foundry org/space, eg.eu-gb.mybluemix.net
. -
The remaining fields can be left unchanged.
-
-
Set the
CF_PASSWORD
variable in your shell. On an interactive shell, runread -s CF_PASSWORD
and type in your password followed by return. Avoid usingexport
with this field, as any sub-shell could then read your password. -
To install a locally built plugin and then run the acceptance tests:
script/build ; script/install ; CF_PASSWORD=$CF_PASSWORD script/test_acceptance
. -
If the tests passed, there should be a message similar to
ACCEPTANCE TESTS PASSED!
printed when the test has finished. The exit value is 0 for a successful test.