This commit is contained in:
Toki 2024-12-30 22:49:15 +09:00
parent a7158ae324
commit 5967a0a65b

View file

@ -51,10 +51,19 @@ class DataComposerJenkins extends DataComposer {
]).then((ProcessResult result) => jsonStr = result.stdout);
jenkinsMap = getMapFromJson(jsonStr)!;
var shell = '\$BuildData';
var result = await Process.run(shell, []);
print('=================> ${result.stdout}');
print('=================> ${result.stderr}');
var shell = 'printf \$BuildData';
var temp = File('${Directory.systemTemp.path}/temp.sh');
temp.createSync();
temp.writeAsStringSync(shell, flush: true);
await Process.start('bash', [temp.path]).then((result) {
result.stdout.listen((event) {
print('=================> ${utf8.decode(event)}');
});
result.stderr.listen((event) {
print('err =============> ${utf8.decode(event)}');
});
return result;
});
} else if (Platform.isWindows) {
await Process.run('cmd', [
'/C',