Skip running job for branch update and pull request update trigger when commit message contains "[skip ci]" or "[ci skip]" (OD-761)
Ryan opened 4 years ago

Apologies if I'm completely missing this somewhere, but is there an option in OneDev to "skip" a CI run?

Use case: My CI/CD build is set to run on all branch pushes. My CI build actually commits code changes to the repository. When the CI runs, it actually triggers another run because the commit fires the CI again. I'd like my CI build to include a commit message like other CI/CD solutions to skip the run and ignore it.

Ref:

  • Robin Shen commented 4 years ago

    Currently OneDev can not skip CI based on commit message pattern. However you may specify patterns of changed files applicable for a job:

    2022-06-09_10-28-52.png

    For instance, you may specify below pattern to exclude all html files from triggering the job:

    -**/*.html
    
  • Robin Shen changed fields 4 years ago
    Name Previous Value Current Value
    Type
    Discussion
    Improvement
  • Robin Shen changed title 4 years ago
    Previous Value Current Value
    How to "Skip" CI  based on commit message?
    Skip running job for branch update and pull request update trigger when commit message contains "[skip ci]" or "[ci skip]"
  • OneDev changed state to 'Closed' 4 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 4 years ago

    State changed as code fixing the issue is committed

  • OneDev changed state to 'Released' 4 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 4 years ago

    State changed as build #2749 is successful

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-761
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover