From 8c44e4771d983d7cb441b8a3f94dd00b680be6a1 Mon Sep 17 00:00:00 2001 From: pawan-59 Date: Thu, 12 Jan 2023 17:16:49 +0530 Subject: [PATCH 1/2] updated the description in sonarqube migration --- scripts/sql/106_sonarqube_plugin_polling.up.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/sql/106_sonarqube_plugin_polling.up.sql b/scripts/sql/106_sonarqube_plugin_polling.up.sql index 572723a41e..882310e706 100644 --- a/scripts/sql/106_sonarqube_plugin_polling.up.sql +++ b/scripts/sql/106_sonarqube_plugin_polling.up.sql @@ -2,16 +2,16 @@ do $$ BEGIN IF NOT EXISTS (SELECT * FROM plugin_step_variable WHERE name = 'UsePropertiesFileFromProject' AND plugin_step_id = 2) THEN INSERT INTO plugin_step_variable (id,plugin_step_id,name,format,description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by) - VALUES(nextval('id_seq_plugin_step_variable'),2,'UsePropertiesFileFromProject','BOOL','Boolean value - true or false. Whether poll Generated Report or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); + VALUES(nextval('id_seq_plugin_step_variable'),2,'UsePropertiesFileFromProject','BOOL','Boolean value - true or false. Whether to use source code sonar-properties file or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); END IF; END; $$; INSERT INTO plugin_step_variable (id,plugin_step_id,name,format,description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by) -VALUES(nextval('id_seq_plugin_step_variable'),2,'CheckForSonarAnalysisReport','BOOL','Boolean value - true or false. Whether poll Generated Report or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); +VALUES(nextval('id_seq_plugin_step_variable'),2,'CheckForSonarAnalysisReport','BOOL','Boolean value - true or false. Whether to poll generated report or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); INSERT INTO plugin_step_variable (id,plugin_step_id,name,format,description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by) -VALUES(nextval('id_seq_plugin_step_variable'),2,'AbortPipelineOnPolicyCheckFailed','BOOL','Boolean value - true or false. Whether to proceed on policy check failed or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); +VALUES(nextval('id_seq_plugin_step_variable'),2,'AbortPipelineOnPolicyCheckFailed','BOOL','Boolean value - true or false. Whether to abort on report check failed or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); UPDATE plugin_pipeline_script SET script=E'PathToCodeDir=/devtroncd$CheckoutPath From a49132253dc4561731d85832874c9c29da92d342 Mon Sep 17 00:00:00 2001 From: Prakarsh <71125043+prakarsh-dt@users.noreply.github.com> Date: Thu, 12 Jan 2023 17:24:16 +0530 Subject: [PATCH 2/2] Update 106_sonarqube_plugin_polling.up.sql --- scripts/sql/106_sonarqube_plugin_polling.up.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/sql/106_sonarqube_plugin_polling.up.sql b/scripts/sql/106_sonarqube_plugin_polling.up.sql index 882310e706..5be3228971 100644 --- a/scripts/sql/106_sonarqube_plugin_polling.up.sql +++ b/scripts/sql/106_sonarqube_plugin_polling.up.sql @@ -2,16 +2,16 @@ do $$ BEGIN IF NOT EXISTS (SELECT * FROM plugin_step_variable WHERE name = 'UsePropertiesFileFromProject' AND plugin_step_id = 2) THEN INSERT INTO plugin_step_variable (id,plugin_step_id,name,format,description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by) - VALUES(nextval('id_seq_plugin_step_variable'),2,'UsePropertiesFileFromProject','BOOL','Boolean value - true or false. Whether to use source code sonar-properties file or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); + VALUES(nextval('id_seq_plugin_step_variable'),2,'UsePropertiesFileFromProject','BOOL','Boolean value - true or false. Set true to use source code sonar-properties file.','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); END IF; END; $$; INSERT INTO plugin_step_variable (id,plugin_step_id,name,format,description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by) -VALUES(nextval('id_seq_plugin_step_variable'),2,'CheckForSonarAnalysisReport','BOOL','Boolean value - true or false. Whether to poll generated report or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); +VALUES(nextval('id_seq_plugin_step_variable'),2,'CheckForSonarAnalysisReport','BOOL','Boolean value - true or false. Set true to poll for generated report from sonarqube.','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); INSERT INTO plugin_step_variable (id,plugin_step_id,name,format,description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by) -VALUES(nextval('id_seq_plugin_step_variable'),2,'AbortPipelineOnPolicyCheckFailed','BOOL','Boolean value - true or false. Whether to abort on report check failed or not','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); +VALUES(nextval('id_seq_plugin_step_variable'),2,'AbortPipelineOnPolicyCheckFailed','BOOL','Boolean value - true or false. Set true to abort on report check failed.','t','f',false,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1); UPDATE plugin_pipeline_script SET script=E'PathToCodeDir=/devtroncd$CheckoutPath @@ -51,4 +51,4 @@ elif [[ $UsePropertiesFileFromProject == false ]] echo "********* SonarQube Policy Passed *********" fi fi -fi' WHERE id=2; \ No newline at end of file +fi' WHERE id=2;