Skip to main content

Run Jobs Against Local Change

Often we need to test/debug CI/CD jobs. This is normally done via modify/commit/push/run/check cycles which is tedious. OneDev 10.2.0 comes with a command line tool TOD (TheOneDev) which can run CI/CD jobs against your uncommitted changes directly.

Under the hood, tod stashes local changes to a commit and pushes to server under a temporal ref to run specified job. Log of running job is streamed back to tod so that you can check job progress and status without leaving terminal.

tod

Since job runs on server, it does not have many quirks and limitations of other tools (gitlab-runner exec or nektos/act for instance), such as requiring you to set up job environments, unable to handle job dependencies, etc. And you can still get fast feedback via shallow clone and cache.

For details, please check tod project