Home Quick start All builds News Donations
More
Log In
Light Theme Docs
Workers

SparrowCI Report - gh-melezhik-hub-example | [image: NA]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2617
Status: FAIL
Image:
Worker status: OK
---
Date: 16.01.2023 @ 02:01
Time elapsed: 17 sec
---
SCM: https://github.com/melezhik/hub-example.git
Git sha: 8a22a6d
Git comment: Update sparrow.yaml
tasks:
  -
    name: main
    language: Raku
    code: |
      for config()<tasks><multifetch><stat><> -> \i {
        say "url: {i<url>} - [{i<status>}]";
      }
    depends:
      -
        name: multifetch

  -
    name: multifetch
    language: Raku
    code: |
      if "{cache_root_dir()}/status.OK".IO ~~ :e {
        update_status %( url => config()<url>, status => "OK" );
      } else {
        update_status %( url => config()<url>, status => "FAIL" );
      }
    init: |
      task_run "fetch"
    subtasks:
      -
        name: fetch
        language: Bash
        code: |
          curl -f $(config url) && touch $cache_root_dir/status.OK
          echo $?
    hub:
      language: Raku
      code: |
        update_status %(
          list => [
              config => { url => "https://raku.org" },
              config => { url => "https://raku.land" },
              config => { url => "http://irclogs.raku.org" },
          ],
        );
default task is not found