Skip to content

Commit

Permalink
source pulling and deployment (#246)
Browse files Browse the repository at this point in the history
Changes related to source pulling and deployment status
  • Loading branch information
swatipersistent authored Jan 18, 2024
1 parent 04a5ba8 commit 48dd960
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/cx/restclient/common/Waiter.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public T waitForTaskToFinish(String taskId, Integer scanTimeoutSec, Logger log)
if (retry <= 0) {
throw new CxClientException(FAILED_MSG + scanType + ". Error message: " + e.getMessage(), e);
}
if (statusResponse == null || (statusResponse.getBaseStatus() == null)) {
statusResponse = (T) new BaseStatus(Status.SOURCE_PULLING_AND_DEPLOYMENT);
}
if (statusResponse == null || (statusResponse.getBaseStatus() == null)) {
statusResponse = (T) new BaseStatus(Status.IN_PROGRESS);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/cx/restclient/dto/Status.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public enum Status {

IN_PROGRESS("In progress"),
SUCCEEDED("Succeeded"),
FAILED("Failed");

FAILED("Failed"),
SOURCE_PULLING_AND_DEPLOYMENT ("SourcePullingAndDeployment");

private String value;

Expand Down

0 comments on commit 48dd960

Please sign in to comment.