r-hub / devops-issues

A place to collect the devops-y issue tickets for R-hub
0 stars 0 forks source link

Support pre-check and post-check scripts #8

Open gaborcsardi opened 6 years ago

gaborcsardi commented 6 years ago

This is quite easy, and would solve a lot of issues.

These are the steps needed:

gaborcsardi commented 6 years ago

Or maybe we could just allow running arbitrary scripts as in the pre-check and post-check phases? Scripts could also create files, if needed. Then we might as well have a complete sequence of overridable steps.

We can start with pre-check and post-check, though.

gaborcsardi commented 6 years ago

Need to fix the jenkins api package for this, to be able to upload files: https://github.com/silas/node-jenkins/issues/33

gaborcsardi commented 6 years ago

One question is what kind of shell (or language, really) we assume for the pre-check and post-check scripts. We can't just assume bash on windows, for example, that is not very useful.

Maybe we can go with bash on Unix and PowerShell on Windows, and the alternatives could be specified in dictionaries. E.g.:

[{ 
  unix: "ls",
  windows: "dir"
}.
...
]