Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean-up script to delete old pr- environments not working #388

Closed
jloubet opened this issue May 6, 2021 · 1 comment
Closed

Clean-up script to delete old pr- environments not working #388

jloubet opened this issue May 6, 2021 · 1 comment

Comments

@jloubet
Copy link

jloubet commented May 6, 2021

I'm running a terminus command in order to remove the pr's multidev that has closed pull requests.

When running:
terminus -n build:env:delete:pr <TERMINUS_SITE> --yes

I get:

 [notice] Rsync pr-5.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx@appserver.pr-5.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.drush.in:code/build-metadata.json => /tmp/build-metadata.json
 [notice] Rsync pr-8.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx@appserver.pr-8.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.drush.in:code/build-metadata.json => /tmp/build-metadata.json
 [notice] Rsync pr-9.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx@appserver.pr-9.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.drush.in:code/build-metadata.json => /tmp/build-metadata.json
 [notice] No environments have build metadata.

I checked the multidevs and all of them has the file code/build-metadata.json:
{"url":"","ref":"pr-10","sha":"xxxxxxxxxxxxx","comment":"CI: Merge pull request #9 from xxx-xxx/xxx-xxx","commit-date":"2021-05-04 15:44:56 -0700","build-date":"2021-05-05 20:21:31 +0000"}

Thanks,

@jloubet
Copy link
Author

jloubet commented May 6, 2021

I was able to fix the issue by adding a GITHUB_TOKEN. It looks CI isn't reporting issues on connecting to GitHub API.

@jloubet jloubet closed this as completed May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant