Skip to content

Commit 141e407

Browse files
whit2333baltzell
authored andcommitted
modified: .gitlab-ci.yml
modified: common-tools/clas-io/src/main/java/org/jlab/utils/JsonUtils.java
1 parent 42ed218 commit 141e407

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ coatjava_dind_build:
3939
-t $CI_REGISTRY_IMAGE/coatjava_dind:${CI_COMMIT_REF_NAME} .
4040
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
4141
- docker push $CI_REGISTRY_IMAGE/coatjava_dind:${CI_COMMIT_REF_NAME}
42+
43+
44+
print_help:
45+
image: $CI_REGISTRY_IMAGE/coatjava:${CI_COMMIT_REF_NAME}
46+
needs: ["coatjava_build"]
47+
script:
48+
- export PATH=/opt/coatjava/coatjava/bin:$PATH
49+
- source /opt/coatjava/coatjava/libexec/env.sh
50+
- ls -lrth
51+
- printenv
52+
- decoder -help || true
53+
- recon-util -help || true
54+
4255

4356
alert_testing:
4457
needs: ["coatjava_build"]

common-tools/clas-io/src/main/java/org/jlab/utils/JsonUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ public static JsonObject Map2Json(Map<String,Object> map) {
109109
JsonObject ret = new JsonObject();
110110
for (Map.Entry<String,Object> entry : map.entrySet()) {
111111
String topKey = entry.getKey();
112-
System.out.println("topKey " + topKey);
113112
if (entry.getValue() instanceof Map) {
114113
ret.add(topKey,Map2Json((Map)entry.getValue()));
115114
}
116115
else {
117-
System.out.println("value " + entry.getValue());
118-
ret.add(topKey, entry.getValue().toString());
116+
if(entry.getValue() != null) {
117+
ret.add(topKey, entry.getValue().toString());
118+
}
119119
}
120120
}
121121
return ret;

0 commit comments

Comments
 (0)