summaryrefslogtreecommitdiffstats
path: root/mod/runtimeapi/runtime-core
diff options
context:
space:
mode:
authorvv770d <vv770d@att.com>2022-01-03 20:28:53 +0000
committervv770d <vv770d@att.com>2022-01-06 14:29:58 +0000
commit460c1c55994b1fa4d0f02573e4cfc6dfb26b2b30 (patch)
tree2693333b43b40c06231c2eb0b5df894d47313c1b /mod/runtimeapi/runtime-core
parent7cabd09bc1530ca725a7af40200a4c6568616b04 (diff)
[DCAEMOD/runtime] Fix job failures on missing snapshot
Switch helmchartgenerator-core dependency to released 1.0.2 Modified version format to address NFE Change-Id: Ifbcb3ca19192ab5bdd6a8a5cd9c4086a3b558365 Signed-off-by: vv770d <vv770d@att.com> Issue-ID: DCAEGEN2-3008 Issue-ID: DCAEGEN2-3028 Signed-off-by: vv770d <vv770d@att.com>
Diffstat (limited to 'mod/runtimeapi/runtime-core')
-rw-r--r--mod/runtimeapi/runtime-core/pom.xml8
-rw-r--r--mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java6
2 files changed, 8 insertions, 6 deletions
diff --git a/mod/runtimeapi/runtime-core/pom.xml b/mod/runtimeapi/runtime-core/pom.xml
index d9dc634..626061b 100644
--- a/mod/runtimeapi/runtime-core/pom.xml
+++ b/mod/runtimeapi/runtime-core/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
============LICENSE_START=======================================================
-Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
+Copyright (c) 2019-2022 AT&T Intellectual Property. All rights reserved.
================================================================================
Modifications Copyright (c) 2020 Nokia
================================================================================
@@ -25,12 +25,12 @@ limitations under the License.
<parent>
<artifactId>runtimeapi</artifactId>
<groupId>org.onap.dcaegen2.platform.mod</groupId>
- <version>1.3.1</version>
+ <version>1.3.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>runtime-core</artifactId>
- <version>1.3.1</version>
+ <version>1.3.2</version>
<dependencies>
<dependency>
@@ -51,7 +51,7 @@ limitations under the License.
<dependency>
<groupId>org.onap.dcaegen2.platform</groupId>
<artifactId>helmchartgenerator-core</artifactId>
- <version>1.0.2-SNAPSHOT</version>
+ <version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
diff --git a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java
index 7154cae..0d78382 100644
--- a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java
+++ b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2022 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,7 +50,9 @@ public class FlowGraphParser {
}
private static int createBlueprintVersion() {
- DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyMMddHHmm").withZone(ZoneId.of("UTC"));
+ // Generated version must be unique for each flow-graph distribution
+ // Removed year from the text to fix invalid integer issue (DCAEGEN2-3028)
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMddHHmm").withZone(ZoneId.of("UTC"));
Instant instant = Instant.now();
String timestamp = formatter.format(instant);
return Integer.parseInt(timestamp);