Skip to content

Support "Exclusive" Mode to execute a task without dependencies #250

Closed
@nlowe

Description

@nlowe

Cake (a similar tool for writing build scripts in C#) supports a flag called --exclusive. This lets Cake execute a specific task without executing its dependencies. This allows you to quickly re-test a specific task (for example, re-build a Docker container without re-running tests if you just changed the dockerfile) and is particularly well suited for build environments like Jenkins where you can separate tasks for visibility.

In most of the Cake projects we use, we wire up dependencies normally, so if a developer runs the Docker test, they restore packages, build code, and run tests. In our Jenkins file, we split each task to a separate stage (called with --exclusive) in Jenkins so you get nice timing information and better visibility in Blue Ocean.

Is this something Mage could potentially support? I'd be happy to look into sending a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions