This commit is contained in:
Toki 2024-12-30 22:00:13 +09:00
parent 089381c00b
commit 5b79006e35

View file

@ -51,7 +51,10 @@ class DataComposerJenkins extends DataComposer {
]).then((ProcessResult result) => jsonStr = result.stdout);
jenkinsMap = getMapFromJson(jsonStr)!;
await Process.run('echo', ['-e', '\$BuildData'])
var temp = File('${Directory.current.path}/temp.sh');
temp.createSync();
temp.writeAsStringSync('echo -e \$BuildData', flush: true);
await Process.run(shellExe, [temp.path])
.then((processResult) => {print(processResult.stdout)});
} else if (Platform.isWindows) {
await Process.run('cmd', [