From 108796a9f7e6cb4bb35a1c36fe2520c4fd92cd6e Mon Sep 17 00:00:00 2001 From: Toki Date: Mon, 30 Dec 2024 21:49:22 +0900 Subject: [PATCH] test --- lib/oto/core/data_composer.dart | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/oto/core/data_composer.dart b/lib/oto/core/data_composer.dart index fa40e4f..f9db2cc 100644 --- a/lib/oto/core/data_composer.dart +++ b/lib/oto/core/data_composer.dart @@ -2,7 +2,6 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; -import 'package:dart_framework/utils/string_util.dart'; import 'package:dart_framework/utils/system_util.dart'; import 'package:oto_cli/cli/cli.dart'; import 'package:oto_cli/oto/application.dart'; @@ -52,17 +51,8 @@ class DataComposerJenkins extends DataComposer { ]).then((ProcessResult result) => jsonStr = result.stdout); jenkinsMap = getMapFromJson(jsonStr)!; - var shell = StringBuffer('echo -e \$BuildData'); - var fileTemp = File('${Directory.systemTemp}/temp_${getDates()}.sh'); - fileTemp.createSync(recursive: true); - fileTemp.writeAsStringSync(shell.toString(), flush: true); - await Process.run(shellExe, [fileTemp.path]).then((processResult) { - fileTemp.deleteSync(); - var file = - File('/home/toki/jenkins/workspace/oto_cli_linux/build_data.yaml'); - file.createSync(); - file.writeAsStringSync(processResult.stdout, flush: true); - }); + await Process.run('echo', ['-e', '\$BuildData']) + .then((processResult) => {}); } else if (Platform.isWindows) { await Process.run('cmd', [ '/C',