Open gaborcsardi opened 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.
Need to fix the jenkins api package for this, to be able to upload files: https://github.com/silas/node-jenkins/issues/33
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"
}.
...
]
This is quite easy, and would solve a lot of issues.
These are the steps needed:
rhub-frontend
to allow specifying the scripts in advanced moderhub-frontend
api puts the scripts in the message queue