Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Feature: Pipelining and steps flow control (try & catch) #50

Open
blackandred opened this issue Oct 2, 2020 · 2 comments
Open

Feature: Pipelining and steps flow control (try & catch) #50

blackandred opened this issue Oct 2, 2020 · 2 comments
Labels
FEATURE New feature or request
Milestone

Comments

@blackandred
Copy link
Contributor

blackandred commented Oct 2, 2020

YAML example:

pipelines:
    :build:
        - task: :build --php=8.0
        - task: :migrations
          error: :notify "Migrations failed"
        - task: :run
          rescue: :when-run-fails
        - block:
              - task: :something
          rescue: :notify 
        - task: :something

Shell example:

rkd \
     :build --php=8.0 \
     {@failure :notify "Migrations failed"} :migrations {@failure} \ 
     {@rescue :something} :run {@rescue} \ 
     :something

Python example:

# todo
@blackandred blackandred added the FEATURE New feature or request label Oct 2, 2020
@blackandred blackandred added this to the RKD 2.3 milestone Oct 2, 2020
@blackandred
Copy link
Contributor Author

Alternatively:

  • Allow to prefix steps with "on_error" / "catch" , and "always" / "finally" to execute steps depending on if there was an error or not

@blackandred blackandred modified the milestones: RKD 2.3, RKD 2.4 Nov 9, 2020
@blackandred blackandred changed the title Feature: Skip a step, when exit code is set to a special exit code Feature: Control steps execution - skip steps, rescue steps Nov 9, 2020
@blackandred blackandred changed the title Feature: Control steps execution - skip steps, rescue steps Feature: Pipelining and steps flow control (try & catch) Jan 11, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Jan 15, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Jan 15, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Jan 15, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Jan 16, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Jan 17, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Jan 17, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Jan 28, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Mar 19, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Mar 19, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Mar 19, 2021
keskad pushed a commit to keskad/riotkit-do that referenced this issue Mar 19, 2021
@blackandred blackandred modified the milestones: RKD x.y - be more Gradle-like, RKD 3.0 Aug 2, 2021
@blackandred
Copy link
Contributor Author

Mostly done by @dkwebbie, now needs to be adapted to YAML syntax.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FEATURE New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant