From 3d4ac45aabff97f8be3bfe5962701ea5970381c7 Mon Sep 17 00:00:00 2001 From: leon2Meudon92 Date: Mon, 24 Jul 2023 16:05:49 +0200 Subject: [PATCH] WEBITOOLS-192: updated documentation and tests --- aip-console-jenkins/README.md | 14 ++++++++++---- .../plugins/aipconsole/AddVersionBuilder.java | 2 +- .../aipconsole/AddVersionBuilder/config.jelly | 1 + .../plugins/aipconsole/AddVersionBuilderTest.java | 2 +- aip-console-tools-cli/README.md | 6 ++++-- .../aip/console/tools/commands/AnalyzeCommand.java | 1 + .../core/services/ApplicationServiceImpl.java | 2 +- 7 files changed, 19 insertions(+), 9 deletions(-) diff --git a/aip-console-jenkins/README.md b/aip-console-jenkins/README.md index 4ef24b82..4ac2c212 100644 --- a/aip-console-jenkins/README.md +++ b/aip-console-jenkins/README.md @@ -263,8 +263,10 @@ The Add Version step provides the following parameters : technologies JEE and DOTNET as well.Has no effect if `Rescan` is checked. * *Enable Data Safety Investigation*: Enables the data safety investigation objective for the version. -* *Module Generation Type*: How the module generation will be handled by AIP Console. Either "Full Content" (default), " +* *Module Generation Type*: How the module generation will be handled by AIP Console. Either "Preserve Configured" ( + default), or '"Full Content", " Analysis Unit module" or "Technology Module". + * **NOTE** Use Preserve Configured option to keep your existing module generation type unchanged. Under `Advanced Settings` you will find the following parameters : @@ -334,11 +336,15 @@ Under `Advanced Settings` you will find the following parameters : The Analyze step provides the following parameters : * *Application Name* (**required**): The name of the application for which the analysis will be run. -* *Version Name*: The name of the version to Analyze. If left blank, the analyzed version will be the latest Delivered Version. If no new Delivered Version Exists, it will use the Current Version. +* *Version Name*: The name of the version to Analyze. If left blank, the analyzed version will be the latest + Delivered Version. If no new Delivered Version Exists, it will use the Current Version. * *Snapshot*: Whether Snapshots should be created after Analysis. * *Publish to Imaging*: Publish to Imaging if Imaging is configured with AIP Console -* *Publish to the Health Dashboard* : When checked, consolidates snapshots and publishes data to the Health Dashboards. Checked by default. -* *Module Generation Type*: How the module generation will be handled by AIP Console. Either "Full Content" (default), "Analysis Unit module" or "Technology Module". +* *Publish to the Health Dashboard* : When checked, consolidates snapshots and publishes data to the Health Dashboards. + Checked by default. +* *Module Generation Type*: How the module generation will be handled by AIP Console. Either "Preserve Configured" ( + default), or '"Full Content", "Analysis Unit module" or "Technology Module". + * **NOTE** Use Preserve Configured option to keep your existing module generation type unchanged.. Under `Advanced Settings` you will find the following parameters : diff --git a/aip-console-jenkins/src/main/java/io/jenkins/plugins/aipconsole/AddVersionBuilder.java b/aip-console-jenkins/src/main/java/io/jenkins/plugins/aipconsole/AddVersionBuilder.java index cf737e85..252a92f8 100644 --- a/aip-console-jenkins/src/main/java/io/jenkins/plugins/aipconsole/AddVersionBuilder.java +++ b/aip-console-jenkins/src/main/java/io/jenkins/plugins/aipconsole/AddVersionBuilder.java @@ -118,7 +118,7 @@ public class AddVersionBuilder extends BaseActionBuilder implements SimpleBuildS @Nullable private String snapshotName = ""; - private String moduleGenerationType = ModuleGenerationType.FULL_CONTENT.toString(); + private String moduleGenerationType; @DataBoundConstructor public AddVersionBuilder(String applicationName, String filePath) { diff --git a/aip-console-jenkins/src/main/resources/io/jenkins/plugins/aipconsole/AddVersionBuilder/config.jelly b/aip-console-jenkins/src/main/resources/io/jenkins/plugins/aipconsole/AddVersionBuilder/config.jelly index 78133895..ccd20b88 100644 --- a/aip-console-jenkins/src/main/resources/io/jenkins/plugins/aipconsole/AddVersionBuilder/config.jelly +++ b/aip-console-jenkins/src/main/resources/io/jenkins/plugins/aipconsole/AddVersionBuilder/config.jelly @@ -30,6 +30,7 @@