Skip to content

Commit d83c2ba

Browse files
committed
Fix token check
1 parent c434f83 commit d83c2ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/deploy/DeployCommand.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void run() {
5959
}
6060
System.setProperty("maven.settings", mvnSettings);
6161
}
62-
if (isNotEmpty(accessToken)) {
62+
if (accessToken.isPresent()) {
6363
String servers = """
6464
<settings>
6565
<!--

java-components/build-request-processor/src/test/java/com/redhat/hacbs/container/deploy/MavenDeployTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void testDeploy() throws IOException {
6464
DeployCommand deployCommand = new DeployCommand();
6565
deployCommand.mvnCtx = mvnContext;
6666
deployCommand.mvnPassword = Optional.empty();
67+
deployCommand.accessToken = Optional.empty();
6768
deployCommand.mvnRepo = deployment.toAbsolutePath().toUri().toString();
6869
deployCommand.artifactDirectory = onDiskRepo.toString();
6970

0 commit comments

Comments
 (0)