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

SparrowCI Report - gh-melezhik-hub-example | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2629
Status: OK
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 17.01.2023 @ 18:23
Time elapsed: 81 sec
---
SCM: https://github.com/melezhik/hub-example.git
Git sha: 0011f0f
Git comment: Update sparrow.yaml
tasks:
  -
    name: main
    language: Raku
    default: true
    code: |
      for config()<tasks><multifetch><state><> -> \i {
        say "url: {i<url>} - [{i<status>}]";
      }
    depends:
      -
        name: multifetch

  -
    name: multifetch
    language: Raku
    code: |
      if "{cache_root_dir()}/status.OK".IO ~~ :e {
        update_state %( url => config()<url>, status => "OK" );
      } else {
        update_state %( url => config()<url>, status => "FAIL" );
      }
    init: |
      run_task "fetch"
    subtasks:
      -
        name: fetch
        language: Bash
        code: |
          curl -fs $(config url) -o /dev/null  && touch $cache_root_dir/status.OK
          echo $?
    hub:
      language: Raku
      code: |
        update_state %(
          list => [
              config => { url => "https://raku.org" },
              config => { url => "https://raku.land" },
              config => { url => "http://irclogs.raku.org" },
          ],
        );
18:23:16 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[task run: task.raku - tasks/multifetch-hub]
[dump code: task.raku]
[1] update_state %(
[2]   list => [
[3]       config => { url => "https://raku.org" },
[4]       config => { url => "https://raku.land" },
[5]       config => { url => "http://irclogs.raku.org" },
[6]   ],
[7] );
[8] 
[task stdout]
[task run: task.bash - tasks/multifetch]
[dump code: task.bash]
[1] curl -fs $(config url) -o /dev/null  && touch $cache_root_dir/status.OK
[2] echo $?
[3] 
[task stdout]
18:23:22 :: 0
[task run: task.raku - tasks/multifetch]
[dump code: task.raku]
[1] if "{cache_root_dir()}/status.OK".IO ~~ :e {
[2]   update_state %( url => config()<url>, status => "OK" );
[3] } else {
[4]   update_state %( url => config()<url>, status => "FAIL" );
[5] }
[6] 
[task stdout]
[task run: task.bash - tasks/multifetch]
[dump code: task.bash]
[1] curl -fs $(config url) -o /dev/null  && touch $cache_root_dir/status.OK
[2] echo $?
[3] 
[task stdout]
18:23:25 :: 0
[task run: task.raku - tasks/multifetch]
[dump code: task.raku]
[1] if "{cache_root_dir()}/status.OK".IO ~~ :e {
[2]   update_state %( url => config()<url>, status => "OK" );
[3] } else {
[4]   update_state %( url => config()<url>, status => "FAIL" );
[5] }
[6] 
[task stdout]
[task run: task.bash - tasks/multifetch]
[dump code: task.bash]
[1] curl -fs $(config url) -o /dev/null  && touch $cache_root_dir/status.OK
[2] echo $?
[3] 
[task stdout]
18:23:29 :: 0
[task run: task.raku - tasks/multifetch]
[dump code: task.raku]
[1] if "{cache_root_dir()}/status.OK".IO ~~ :e {
[2]   update_state %( url => config()<url>, status => "OK" );
[3] } else {
[4]   update_state %( url => config()<url>, status => "FAIL" );
[5] }
[6] 
[task stdout]
18:23:01 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
18:23:04 :: [repository] - installing pack-unpack, version 0.000001
[task run: task.bash - unpack source archive]
[dump code: task.bash]
[1] set -e
[2] 
[3] file=$(config file)
[4] dir=$(config dir)
[5] 
[6] echo "tar -xzf $file "
[7] 
[8] tar -xzf $file
[9] 
[10] if test $dir; then
[11]   ls -l $dir
[12] fi
[13] 
[14] 
[task stdout]
18:23:06 :: tar -xzf source.tar.gz 
[task run: task.raku - tasks/main]
[dump code: task.raku]
[1] for config()<tasks><multifetch><state><> -> \i {
[2]   say "url: {i<url>} - [{i<status>}]";
[3] }
[4] 
[task stdout]
18:23:33 :: url: https://raku.org - [OK]
18:23:33 :: url: https://raku.land - [OK]
18:23:33 :: url: http://irclogs.raku.org - [OK]