handleDeclarativeJobsetBuild: handle errors from readNixFile

[?]
Mar 4, 2020, 3:32 AM
L54KA7IMVLHLHUED7I2K5AGSDR3EHFLMR7H332TCOTZFPV72AUWQC

Dependencies

  • [2] CHI2EHBJ declarative projects: Pull jobset spec build from the remote store
  • [3] HEZQ273S improve the error messages when invalid declarative jobsets are defined
  • [4] 6WRGCITD Enable declarative projects.
  • [5] BOGEJ3H2 Additional helpful information in error messages.
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate

Change contents

  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 71
    [3.2172][2.0:46](),[2.46][3.2216:2297](),[3.2216][3.2216:2297]()
    my $declText = readNixFile($declPath)
    or die "Couldn't read declarative specification file $declPath: $!";
    [3.2172]
    [3.2297]
    my $declText = eval {
    readNixFile($declPath)
    };
    if ($@) {
    print STDERR "ERROR: failed to readNixFile $declPath: ", $@, "\n";
    die;
    }