Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export JBANG_REPO env variable for release test ci job #17982

Merged
merged 1 commit into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}