polarisParameters) {
Arrays.asList(
ApplicationConstants.POLARIS_SERVER_URL_KEY,
ApplicationConstants.POLARIS_ACCESS_TOKEN_KEY,
- ApplicationConstants.POLARIS_APPLICATION_NAME_KEY,
ApplicationConstants.POLARIS_ASSESSMENT_TYPES_KEY)
.forEach(key -> {
boolean isKeyValid = polarisParameters.containsKey(key)
diff --git a/src/main/resources/io/jenkins/plugins/synopsys/security/scan/extension/pipeline/SecurityScanStep/config.jelly b/src/main/resources/io/jenkins/plugins/synopsys/security/scan/extension/pipeline/SecurityScanStep/config.jelly
index 81c178ff..9668b58f 100644
--- a/src/main/resources/io/jenkins/plugins/synopsys/security/scan/extension/pipeline/SecurityScanStep/config.jelly
+++ b/src/main/resources/io/jenkins/plugins/synopsys/security/scan/extension/pipeline/SecurityScanStep/config.jelly
@@ -52,10 +52,10 @@
-
+
-
+
diff --git a/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/ScannerArgumentServiceTest.java b/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/ScannerArgumentServiceTest.java
index 614390e9..8b436862 100644
--- a/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/ScannerArgumentServiceTest.java
+++ b/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/ScannerArgumentServiceTest.java
@@ -45,6 +45,10 @@ void setUp() {
Mockito.doReturn("fake-branch").when(envVarsMock).get(ApplicationConstants.ENV_BRANCH_NAME_KEY);
Mockito.doReturn("fake-job/branch").when(envVarsMock).get(ApplicationConstants.ENV_JOB_NAME_KEY);
Mockito.doReturn("0").when(envVarsMock).get(ApplicationConstants.ENV_CHANGE_ID_KEY);
+ Mockito.doReturn("https://github.com//scm/TEST_JENKINS/node-pipeline-test.git")
+ .when(envVarsMock)
+ .get(ApplicationConstants.ENV_GIT_URL_KEY);
+ Mockito.doReturn("new-fake-branch").when(envVarsMock).get(ApplicationConstants.ENV_CHANGE_TARGET_KEY);
scannerArgumentService = new ScannerArgumentService(listenerMock, envVarsMock, workspace);
}
diff --git a/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/scan/polaris/PolarisParametersServiceTest.java b/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/scan/polaris/PolarisParametersServiceTest.java
index a781e0fb..82ab6368 100644
--- a/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/scan/polaris/PolarisParametersServiceTest.java
+++ b/src/test/java/io/jenkins/plugins/synopsys/security/scan/service/scan/polaris/PolarisParametersServiceTest.java
@@ -46,7 +46,6 @@ void validScanParametersTest() {
polarisParameters.put(ApplicationConstants.POLARIS_SERVER_URL_KEY, TEST_POLARIS_SERVER_URL);
polarisParameters.put(ApplicationConstants.POLARIS_ACCESS_TOKEN_KEY, TEST_POLARIS_ACCESS_TOKEN);
- polarisParameters.put(ApplicationConstants.POLARIS_APPLICATION_NAME_KEY, TEST_APPLICATION_NAME);
polarisParameters.put(ApplicationConstants.POLARIS_ASSESSMENT_TYPES_KEY, TEST_POLARIS_ASSESSMENT_TYPES);
assertTrue(polarisParametersService.isValidPolarisParameters(polarisParameters));