test
This commit is contained in:
parent
a0fa001606
commit
108796a9f7
1 changed files with 2 additions and 12 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue