test
This commit is contained in:
parent
4875fc7253
commit
58ee7589ae
1 changed files with 5 additions and 13 deletions
|
|
@ -2,6 +2,7 @@ import 'dart:async';
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:dart_framework/platform/process.dart';
|
||||
import 'package:dart_framework/utils/system_util.dart';
|
||||
import 'package:oto_cli/cli/cli.dart';
|
||||
import 'package:oto_cli/oto/application.dart';
|
||||
|
|
@ -51,19 +52,10 @@ class DataComposerJenkins extends DataComposer {
|
|||
]).then((ProcessResult result) => jsonStr = result.stdout);
|
||||
jenkinsMap = getMapFromJson(jsonStr)!;
|
||||
|
||||
var temp = File('/home/toki/jenkins/workspace/oto_cli_linux/temp.sh');
|
||||
if (temp.existsSync()) {
|
||||
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)}');
|
||||
});
|
||||
});
|
||||
} else {
|
||||
print('======================> temp is not exist!!!!');
|
||||
}
|
||||
var shell = StringBuffer('printf "%s\n" "\${BuildData}"');
|
||||
var process = await ProcessExecutor.start(shell);
|
||||
await process.waitForExit();
|
||||
print(process.stdout.toString());
|
||||
} else if (Platform.isWindows) {
|
||||
await Process.run('cmd', [
|
||||
'/C',
|
||||
|
|
|
|||
Loading…
Reference in a new issue