semaphoreci / cli

Semaphore 2.0 Command Line Interface
Apache License 2.0
26 stars 13 forks source link

sem stop with workflow ID #120

Closed markoa closed 5 years ago

markoa commented 5 years ago

I'm wondering why we introduced sem stop pipeline but not sem stop workflow?

Workflow is the equivalent of "build" in S1, so that's what I have open in my web browser most of the time. Stopping the whole thing because I made a mistake in config file is exactly what I want, and I can easily copy the workflow ID from the address bar. Whereas I don't know how to get ID of the pipeline.

shiroyasha commented 5 years ago

Solved by the latest PR on the master branch.

https://github.com/semaphoreci/cli/pull/119

markoa commented 5 years ago

Heads up that sem 0.8.14 doesn't include this option:

$ sem help stop
Stop resource execution.

Usage:
  sem stop [command]

Available Commands:
  job         Stop running job.
  pipeline    Stop running pipeline.
markoa commented 5 years ago

Sorry, actually the issue is that running curl https://storage.googleapis.com/sem-cli-releases/get.sh | bash currently installs 0.8.12 and not the latest version.

shiroyasha commented 5 years ago

Triggered promotion of 0.8.14 to stable version https://semaphore.semaphoreci.com/workflows/57e67b48-feb7-4f06-9c80-9b595a6646cd?switch-e9d283d7-094a-4471-9bd1-77af834f094d=bd830e1d-ffdd-44ba-a566-33ee412d0447.

Will be available in ~1m.