jenkins_github_drupal icon indicating copy to clipboard operation
jenkins_github_drupal copied to clipboard

Tear down environment on merge

Open juampynr opened this issue 12 years ago • 3 comments

Maybe I am missing something, but does an environment built for a pull request get teared down if the pull request is merged or closed?

If not, where shall I start looking for to implement it?

juampynr avatar Jul 18 '13 22:07 juampynr

I would love for this to be automatic, but it's currently not, which is why they comments have a link to tear down the environment. Our workflow has been:

  1. Merge the PR
  2. Delete the branch
  3. Click the link to tear down the PR environ.

q0rban avatar Jul 18 '13 22:07 q0rban

As for the current flow, when you click on the link to tear down, if you are logged in already it does not work since it expects a POST request. I guess that if you are not logged in to Jekins it will work since you are forwarded to the tear down task after logging in, which is POST.

Is there any way for accepting GET request to tear down so people already logged in can do it?

juampynr avatar Jul 18 '13 22:07 juampynr

It should work fine, @juampy72, you just have to click the button on the page where it tells you it needs to be a POST.

q0rban avatar Jul 18 '13 23:07 q0rban