Skip to content

Commit

Permalink
Merge pull request #17982 from glefloch/fix/release-job-jbang
Browse files Browse the repository at this point in the history
Export JBANG_REPO env variable for release test ci job
  • Loading branch information
glefloch authored Jun 17, 2021
2 parents 05b3caa + 1b0c2ff commit c965b72
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 c965b72

Please sign in to comment.