As a toolforge user, I can use the toolforge build cancel {id} feature in order to cancel the build.
How do we know it's done?
Feature: I want to cancel the build using the toolforge build cancel feature.
Background:
Given I'm logged in as a tool (after ssh login.toolforge.org + become mytool)
Scenario: Cancel a given running build - DONE
Given that the given build is running When running the command toolforge build cancel {id} Then the build gets canceled
Scenario: Cancel a given not started build - DONE
Given that the given build is in "not started" status When running the command toolforge build cancel {id} Then the build gets canceled
Scenario: Cancel a given finished build - DONE
Given that the given build is finished When running the command toolforge build cancel {id} Then a message is shown saying that the build is not running
Scenario: Cancel a non-existent build id - DONE
Given that the given build does not exist When running the command toolforge build cancel {id} Then a message is shown saying that the build does not exist
Scenario: See the “cancel” status -- DONE
Given that a build is canceled When running the command build show {id} Then the status shown is "canceled"
Scenario: See the “cancel” status of the latest build - DONE
Given that a build is canceled And it's the latest build When running the command build show Then the status shown is "canceled"
Scenario: Service is down - DONE
When I run the command toolforge build cancel {id} and the service is down Then I see an error message telling me the service is down And the message gives me actionable feedback
This epic contains the following tasks:
This is a tracking task, so it will be closed once the tasks mentioned below are completed.
- T324823: tbs: user-story 2 - Feature: I can start a new build from a git url
- T324828: tbs: user-story 3 - cancel cli should give the right error when the service is down
- T331409: [tbs.cli] The cancel command should return a message saying that the build is already finished when trying to cancel a finished build
- T331410: [tbs.cli] The cancel command should show a useful message when the connection to tekton works but returns http error (requests.exceptions.HTTPError)