standard/jenkins.js

19 lines
425 B
JavaScript
Raw Normal View History

2020-05-04 12:00:18 +02:00
'use strict';
2020-05-15 12:56:20 +02:00
const https = require ('https');
2020-05-04 12:00:18 +02:00
const fs = require ('fs');
2020-05-15 12:56:20 +02:00
const { execSync: exec_sync } = require ('child_process');
2020-05-12 10:02:18 +02:00
2020-05-15 12:56:20 +02:00
const run_file = fs.createWriteStream ('.jenkins.run.js');
2020-05-12 10:02:18 +02:00
2020-05-15 12:56:20 +02:00
run_file.on ('close', () => {
exec_sync ('node .jenkins.run.js', { stdio: 'inherit' });
});
2020-05-15 12:56:20 +02:00
https.request (
'https://git.scode.ovh/Timo/standard/raw/branch/master/jenkins.run.js',
(msg) => {
msg.pipe (run_file);
2020-05-12 10:02:18 +02:00
}
2020-05-15 12:56:20 +02:00
);