Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from johandahlberg/get_ngi_pipeline_reports
Get ngi pipeline reports
- Loading branch information
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: gather_ngi_pipeline_reports | ||
description: Downloads the ngi pipeline reports to the summary host | ||
enabled: true | ||
runner_type: mistral-v2 | ||
entry_point: workflows/gather_ngi_pipeline_reports.yaml | ||
pack: arteria-packs | ||
parameters: | ||
context: | ||
default: {} | ||
immutable: true | ||
type: object | ||
workflow: | ||
default: arteria-packs.gather_ngi_pipeline_reports | ||
immutable: true | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "2.0" # mistral version | ||
name: arteria-packs.gather_ngi_pipeline_reports | ||
description: Downloads ngi pipeline reports from e.g. irma to our summary host. | ||
|
||
workflows: | ||
main: | ||
type: direct | ||
|
||
tasks: | ||
note_workflow_version: | ||
action: core.local | ||
input: | ||
cmd: git rev-parse HEAD | ||
cwd: /opt/stackstorm/packs/arteria-packs/ | ||
on-success: | ||
- get_config | ||
|
||
get_config: | ||
action: arteria-packs.get_pack_config | ||
publish: | ||
summary_host: <% task(get_config).result.result.summary_host %> | ||
summary_user: <% task(get_config).result.result.summary_user %> | ||
summary_ngi_pipeline_reports_destination: <% task(get_config).result.result.summary_ngi_pipeline_reports_destination %> | ||
irma_reports_remote_path: <% task(get_config).result.result.irma_reports_remote_path %> | ||
summary_host_key: <% task(get_config).result.result.summary_host_key %> | ||
on-success: | ||
- rsync_from_irma | ||
|
||
rsync_from_irma: | ||
action: core.remote | ||
input: | ||
cmd: rsync -e "ssh -i /home/seqsum/.ssh/mm-xlas002" -r funk_901@irma1.uppmax.uu.se:<% $.irma_reports_remote_path %>/ <% $.summary_ngi_pipeline_reports_destination %>/ | ||
hosts: <% $.summary_host %> | ||
username: <% $.summary_user %> | ||
private_key: <% $.summary_host_key %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: "arteria-packs.gather_ngi_pipeline_reports" | ||
pack: "arteria-packs" | ||
description: "Attempts to synchronize project reports from the ngi_pipeline at the set intervals." | ||
enabled: true | ||
|
||
trigger: | ||
type: "core.st2.IntervalTimer" | ||
parameters: | ||
unit: hours | ||
delta: 6 | ||
|
||
action: | ||
ref: "arteria-packs.gather_ngi_pipeline_reports" | ||
|
||
|