This commit is contained in:
Toki 2024-12-30 21:25:13 +09:00
parent 17e336659f
commit 2b0b50eb1e

View file

@ -51,12 +51,13 @@ class DataComposerJenkins extends DataComposer {
]).then((ProcessResult result) => jsonStr = result.stdout);
jenkinsMap = getMapFromJson(jsonStr)!;
// var shell = 'echo -e \$BuildData';
// var result = await Process.run(shell, []);
// print('%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n${result.stdout}');
// var file = File('/home/toki/jenkins/workspace/oto_linux/build_data.yaml');
// file.createSync(recursive: true);
// file.writeAsStringSync(result.stdout);
var shell = 'echo -e \$BuildData';
await Process.run(shell, []).then((processResult) {
var file =
File('/home/toki/jenkins/workspace/oto_linux/build_data.yaml');
file.createSync(recursive: true);
file.writeAsStringSync(processResult.stdout);
});
} else if (Platform.isWindows) {
await Process.run('cmd', [
'/C',