Skip to content

Commit

Permalink
Export JBANG_REPO env variable for release test ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
glefloch committed Jun 17, 2021
1 parent 1b888e4 commit 1b0c2ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
if: github.repository == 'quarkusio/quarkus'
env:
MAVEN_OPTS: -Xmx2048m -XX:MaxMetaspaceSize=1000m
JBANG_REPO: $HOME/release/repository
steps:
- uses: actions/checkout@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import io.quarkus.cli.common.RegistryClientMixin;
import io.quarkus.cli.common.RunModeOption;
import io.quarkus.devtools.project.BuildTool;
import io.quarkus.registry.config.RegistriesConfigLocator;

public class JBangRunner implements BuildSystemRunner {
static final String[] windowsWrapper = { "jbang.cmd", "jbang.ps1" };
Expand Down Expand Up @@ -72,7 +71,6 @@ public BuildCommandArgs prepareBuild(BuildOptions buildOptions, RunModeOption ru
args.add("--native");
}
args.add("build");
setJbangProperties(args, false);
args.addAll(params);
args.add(getMainPath());
return prependExecutable(args);
Expand Down Expand Up @@ -126,10 +124,4 @@ String getMainPath() {
}
return mainPath;
}

void setJbangProperties(ArrayDeque<String> args, boolean batchMode) {
ExecuteUtil.propagatePropertyIfSet("maven.repo.local", args);
ExecuteUtil.propagatePropertyIfSet(RegistriesConfigLocator.CONFIG_FILE_PATH_PROPERTY, args);
ExecuteUtil.propagatePropertyIfSet("io.quarkus.maven.secondary-local-repo", args);
}
}

0 comments on commit 1b0c2ff

Please sign in to comment.