Skip to content

Configurable checkouts - #74

Merged
blag merged 3 commits into
masterfrom
configurable-checkouts
Sep 13, 2019
Merged

Configurable checkouts#74
blag merged 3 commits into
masterfrom
configurable-checkouts

Conversation

@blag

@blag blag commented Sep 13, 2019

Copy link
Copy Markdown
Contributor

This PR tweaks the dependencies script to use environment variables to specify the branches of ST2 and lint-configs to checkout. I maintain reverse compatibility by using Bash magic (eg: variable references) to default to the master branch if the environment variables are not defined.

This is useful for when you are working on fixing failing pack CIs and you want to test out some changes to, for instance, the st2-run-pack-tests script from the st2 repository. This should make it easier and faster to test out changes to the CI scripts for failing packs.

Before this PR, you had to rerun a failed CircleCI workflow with SSH, SSH in, tweak the dependencies script yourself (or manually checkout a different branch of st2 or lint-configs), and rerun the tests. With this PR, you just have to set environment variables in the CircleCI configuration and rerun the failed workflow.

@blag
blag force-pushed the configurable-checkouts branch from 36dfc7d to ff4f5b3 Compare September 13, 2019 08:00
Comment thread .circle/dependencies Outdated
@blag
blag merged commit 3cc2e69 into master Sep 13, 2019
@blag
blag deleted the configurable-checkouts branch September 13, 2019 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants