Treatment githubJobResult

cicd/services/github::githubJobResult


Configuration

⬡ contexts: javascript::JavaScriptEngine

Parameters

↳ var local_context: Json (json::Json)
↳ var name: string
↳ var outputs: StringMap (std/data/string_map::StringMap)

Inputs

⇥ trigger_release: Block<void>

Outputs

↦ failure: Block<void>
↦ finished: Block<void>
↦ result: Block<Json> (json::Json)
↦ success: Block<void>


Compute the final job result after all steps have run.

Waits for trigger_release, then evaluates outputs expressions via the JavaScript engine and queries the job status from the engine context.

result emits a Json value containing the full job result object. success is emitted when the job status is "success", failure when it is "failure". finished is always emitted when the treatment ends.

graph LR
     T("githubJobResult()")
     TR["〈🟦〉"] -->|trigger_release| T
     T -->|result| R["〈🟨〉"]
     T -->|success| S["〈🟩〉"]
     T -->|failure| F["〈🟥〉"]
     T -->|finished| FN["〈🟦〉"]
     style TR fill:#ffff,stroke:#ffff
     style R fill:#ffff,stroke:#ffff
     style S fill:#ffff,stroke:#ffff
     style F fill:#ffff,stroke:#ffff
     style FN fill:#ffff,stroke:#ffff