Skip to content

Commit

Permalink
ASA-1689: ASoC Jenkins plugin's parameter wait is not working. Adding…
Browse files Browse the repository at this point in the history
… the InQueue Status. Signed-off-by: Quan Tran quanzt@gmail.com. (#43)
  • Loading branch information
quanzt authored and mattmurp committed Oct 15, 2019
1 parent 3f7e2d7 commit 59c3cb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@
<dependency>
<groupId>com.hcl</groupId>
<artifactId>appscan.sdk</artifactId>
<version>1.0.9</version>
<version>1.0.10</version>
</dependency>
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-json4j</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public IResultsProvider call() throws AbortException {
progress.setStatus(new Message(Message.INFO, Messages.analysis_running()));
String status = provider.getStatus();

while(status != null && status.equalsIgnoreCase(CoreConstants.RUNNING)) {
while(status != null && (status.equalsIgnoreCase(CoreConstants.INQUEUE) || status.equalsIgnoreCase(CoreConstants.RUNNING))) {
Thread.sleep(60000);
status = provider.getStatus();
}
Expand Down

0 comments on commit 59c3cb7

Please sign in to comment.