Build server prototype (integration with GitHub / NuGet / etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
micro-build-server/BuildServer/routes/manual.ts

24 lines
568 B

"use strict";
import * as _ from "underscore";
import { build } from "../lib/builder";
export const get = (req, res) => res.render("manual");
export const post = (req, res) => {
const options = {
...req.body,
8 years ago
app: req.app,
url: `https://pos-github.payonline.ru/${req.body.owner}/${req.body.reponame}`,
};
build(options, (err, result) => {
console.log("Done processing manual request");
console.log(`Error: ${err}`);
res.render("manual-done", {
err,
8 years ago
result,
});
});
8 years ago
};