From 460c1c55994b1fa4d0f02573e4cfc6dfb26b2b30 Mon Sep 17 00:00:00 2001 From: vv770d Date: Mon, 3 Jan 2022 20:28:53 +0000 Subject: [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 Issue-ID: DCAEGEN2-3008 Issue-ID: DCAEGEN2-3028 Signed-off-by: vv770d --- .../src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/runtimeapi/runtime-core/src') 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); -- cgit 1.2.3-korg