test
This commit is contained in:
parent
a7158ae324
commit
5967a0a65b
1 changed files with 13 additions and 4 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue