test
This commit is contained in:
parent
58ee7589ae
commit
4fb29495fe
1 changed files with 3 additions and 2 deletions
|
|
@ -52,10 +52,11 @@ class DataComposerJenkins extends DataComposer {
|
|||
]).then((ProcessResult result) => jsonStr = result.stdout);
|
||||
jenkinsMap = getMapFromJson(jsonStr)!;
|
||||
|
||||
//write build data
|
||||
var shell = StringBuffer('printf "%s\n" "\${BuildData}"');
|
||||
var process = await ProcessExecutor.start(shell);
|
||||
await process.waitForExit();
|
||||
print(process.stdout.toString());
|
||||
buildYaml = process.stdout.toString();
|
||||
} else if (Platform.isWindows) {
|
||||
await Process.run('cmd', [
|
||||
'/C',
|
||||
|
|
@ -64,6 +65,7 @@ class DataComposerJenkins extends DataComposer {
|
|||
jsonStr = jsonStr.substring(jsonStr.indexOf('{'));
|
||||
jsonStr = jsonStr.replaceAll('\\', '/');
|
||||
jenkinsMap = getMapFromJson(jsonStr);
|
||||
buildYaml = await getBuildData();
|
||||
} else {
|
||||
enable = false;
|
||||
printer(
|
||||
|
|
@ -75,7 +77,6 @@ class DataComposerJenkins extends DataComposer {
|
|||
Application.log(jsonStr);
|
||||
}
|
||||
commonData = DataCommon.fromJson(jenkinsMap!);
|
||||
buildYaml = await getBuildData();
|
||||
|
||||
return simpleFuture;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue