circleci icon indicating copy to clipboard operation
circleci copied to clipboard

Feature request - allow retry workflow

Open lacostenycoder opened this issue 5 years ago • 0 comments

Give any pertinent information such as OS, gem version, environment, API version. Using latest version 2.0.3 with Ruby 2.3

Issue

Need method to rerun a specific workflow

Steps to reproduce

Feature doesn't seem to be supported by the gem

Expected behavior

Allow this feature

Proposals

  • [x] Reason for change

Use case, auto-deploy workflow deploys feature branches to a test server on a hourly schedule. Sometime we need to trigger this manually. Right now only way is to to use Web UI to rerun the workflow. Would love to be able to do this from custom cli. We could use curl according to https://ideas.circleci.com/ideas/CCI-I-192 but would rather use this gem.

  • [x] Suggestions on how to implement

Would like to pass workflow name as a param something like:

build = CircleCi::Build.new  'username', 'reponame', {workflow: 'auto_deploy_test'}, 'master'
build.retry

lacostenycoder avatar Jan 18 '20 11:01 lacostenycoder