You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "The final status of the Job is: $ci_status (Timeout)"
218
+
fi
219
+
220
+
if [ "$job_completed" = true ]; then
221
+
echo "The Job has been Scuccessfully completed"
222
+
else
223
+
exit 1
224
+
fi
225
+
fi',
226
+
'SHELL',
227
+
'f',
228
+
'now()',
229
+
1,
230
+
'now()',
231
+
1
232
+
);
233
+
234
+
235
+
--Plugin Step
236
+
237
+
INSERT INTO"plugin_step" ("id", "plugin_id","name","description","index","step_type","script_id","deleted", "created_on", "created_by", "updated_on", "updated_by") VALUES (nextval('id_seq_plugin_step'), (SELECT id FROM plugin_metadata WHERE name='Devtron Job Trigger v1.0.0'),'Step 1','Runnig the plugin','1','INLINE',(SELECT last_value FROM id_seq_plugin_pipeline_script),'f','now()', 1, 'now()', 1);
238
+
239
+
240
+
-- Input Variables
241
+
242
+
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
243
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Devtron Job Trigger v1.0.0'and ps."index"=1andps.deleted=false),'DevtronApiToken','STRING','Enter Devtron API Token with required permissions.','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
244
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Devtron Job Trigger v1.0.0'and ps."index"=1andps.deleted=false),'DevtronEndpoint','STRING','Enter the URL of Devtron Dashboard for.eg (https://abc.xyz).','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
245
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Devtron Job Trigger v1.0.0'and ps."index"=1andps.deleted=false),'DevtronJob','STRING','Enter the name or ID of the Devtron Job to be triggered.','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
246
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Devtron Job Trigger v1.0.0'and ps."index"=1andps.deleted=false),'DevtronEnv','STRING','Enter the name or ID of the Environment where the Job is to be triggered. Required if JobPipeline is not given.','t','t',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
247
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Devtron Job Trigger v1.0.0'and ps."index"=1andps.deleted=false),'JobPipeline','STRING','Enter the name or ID of the Job pipeline to be triggered. Required if DevtronEnv is not given.','t','t',null,null,'INPUT','NEW',null,1,null,null, 'f','now()',1,'now()',1),
248
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Devtron Job Trigger v1.0.0'and ps."index"=1andps.deleted=false),'GitCommitHash','STRING','Enter the commit hash from which the job is to be triggered. If not given then, will pick the latest.','t','t',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
249
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Devtron Job Trigger v1.0.0'and ps."index"=1andps.deleted=false),'StatusTimeoutSeconds','NUMBER','Enter the maximum time to wait for the job status.', 't','t',-1,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1);
0 commit comments