From 9e3a8fd4d1e49195eee9468ab01d52c93c0688f0 Mon Sep 17 00:00:00 2001 From: Ruud Senden <8635138+rsenden@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:02:43 +0100 Subject: [PATCH] feat: `fcli fod action run setup-release`: Add support for creating parent application & microservice if not existing --- .../cli/fod/actions/zip/setup-release.yaml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/setup-release.yaml b/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/setup-release.yaml index af52e9c26..4d434e853 100644 --- a/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/setup-release.yaml +++ b/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/setup-release.yaml @@ -52,8 +52,34 @@ parameters: required: true name: sdlc-status cliAliases: status - description: "See `fcli fod release create`" + description: "See `fcli fod release create`. Default value: Development" defaultValue: Development + - group: rel_create_opts + required: false + name: app-description + description: "See `fcli fod release create`" + - group: rel_create_opts + required: false + name: app-notify + description: "See `fcli fod release create`" + - group: rel_create_opts + required: false + name: app-owner + description: "See `fcli fod release create`" + - group: rel_create_opts + required: false + name: app-groups + description: "See `fcli fod release create`" + - group: rel_create_opts + required: false + name: app-type + description: "See `fcli fod release create`. Default value: Web" + defaultValue: Web + - group: rel_create_opts + required: false + name: app-criticality + description: "See `fcli fod release create`. Default value: Medium" + defaultValue: Medium - group: sast_setup_opts name: assessment-type required: false @@ -95,7 +121,7 @@ steps: - write: - to: stdout value: | - Create application release ${parameters.release} (id ${createRelease[0].releaseId}): ${createRelease[0].__action__} + Create application release ${parameters.release} (id ${createRelease[0].releaseId}): ${createRelease[0].__action__.replaceAll('\n', ', ')} - progress: "Waiting for release to leave suspended state" - fcli: - args: fod release wait-for "${parameters.release}" --progress=none