Skip to content

Commit

Permalink
Fix the Kokoro failure introduced with the IntelliJ Platform Gradle P…
Browse files Browse the repository at this point in the history
…lugin (2.x) migration (#7783)

This is a followup on
#7670
  • Loading branch information
jwren authored Nov 12, 2024
1 parent 0c045af commit 9d8fc36
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tool/plugin/lib/plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,19 @@ class GradleBuildCommand extends ProductCommand {

Future<int> savePluginArtifact(BuildSpec spec) async {
final file = File(releasesFilePath(spec));
final source = File('build/distributions/flutter-intellij.zip');

// Log the contents of ./build/distributions, this is useful in debugging
// in general and especially useful for the Kokoro bot which is run remotely
final result = Process.runSync(
'ls',
['-laf', '-laf', 'build/distributions'],
);
log('Content generated in ./build/distributions:\n${result.stdout}');

var source = File('build/distributions/flutter-intellij.zip');
if(!source.existsSync()) {
source = File('build/distributions/flutter-intellij-kokoro.zip');
}
_copyFile(
source,
file.parent,
Expand Down

0 comments on commit 9d8fc36

Please sign in to comment.