Skip to content

Commit 10df061

Browse files
committed
Add jql filter for report upload
1 parent 629a89d commit 10df061

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Main features are:
2020
## Usage
2121

2222
```
23-
java -jar assertthat-bdd-standalone-1.9.2.jar
23+
java -jar assertthat-bdd-standalone-1.9.4.jar
2424
2525
Required options: a, s, i, [-f Download features, -r Upload report]
2626
@@ -34,7 +34,7 @@ usage: assertthat-bdd-standalone-1.6.jar
3434
-n,--runName <NAME> Test run name
3535
-o,--outputFolder <FOLDER PATH> Features output folder
3636
-p,--proxyPassword <PASSWORD> Proxy password
37-
-q,--jql <JQL> JQL filter for features
37+
-q,--jql <JQL> JQL filter for features download and Jira issues to be updated with test results
3838
-b,--tags <tags expression> Tags expression for scenarios filtering
3939
-r,--report Upload report
4040
-s,--secretKey <ASSERTTHAT_SECRET_KEY> Secret key

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<url>https://github.com/assertthat/assertthat-bdd-standalone</url>
2626
<connection>scm:git:git@github.com:assertthat/assertthat-bdd-standalone.git</connection>
2727
<developerConnection>scm:git:git@github.com:assertthat/assertthat-bdd-standalone.git</developerConnection>
28-
<tag>v1.6</tag>
28+
<tag>v1.9.4</tag>
2929
</scm>
3030
<developers>
3131
<developer>

src/main/java/com/assertthat/plugins/internal/APIUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ public Long upload(Long runId, String runName, String filePath, String type, Str
153153
queryParams.add("runName", runName);
154154
queryParams.add("runId", runId.toString());
155155
queryParams.add("type", type);
156-
queryParams.add("jql", jql);
156+
if (jql != null) {
157+
queryParams.add("jql", jql.trim());
158+
}
157159
if(metadata!=null) {
158160
queryParams.add("metadata", UrlEscapers.urlFragmentEscaper().escape(metadata));
159161
}

0 commit comments

Comments
 (0)