Files
git.stella-ops.org/templates/stellaops-plugin-scheduler/.template.config/template.json
StellaOps Bot b058dbe031 up
2025-12-14 23:20:14 +02:00

55 lines
1.6 KiB
JSON

{
"$schema": "http://json.schemastore.org/template",
"author": "StellaOps",
"classifications": ["StellaOps", "Plugin", "Scheduler", "Job"],
"identity": "StellaOps.Plugin.Scheduler",
"name": "StellaOps Scheduled Job Plugin",
"shortName": "stellaops-plugin-scheduler",
"description": "A template for creating StellaOps scheduled job plugins",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "MyJob",
"preferNameDirectory": true,
"symbols": {
"jobName": {
"type": "parameter",
"datatype": "text",
"description": "The name of the scheduled job (e.g., 'Cleanup' for CleanupJob)",
"defaultValue": "MyJob",
"replaces": "MyJob",
"fileRename": "MyJob"
},
"cronSchedule": {
"type": "parameter",
"datatype": "text",
"description": "Default cron schedule for the job",
"defaultValue": "0 0 * * *",
"replaces": "0 0 * * *"
},
"namespace": {
"type": "parameter",
"datatype": "text",
"description": "The root namespace for the plugin",
"defaultValue": "StellaOps.Plugin.MyJob",
"replaces": "StellaOps.Plugin.MyJob"
},
"pluginVersion": {
"type": "parameter",
"datatype": "text",
"description": "The initial plugin version",
"defaultValue": "1.0.0",
"replaces": "1.0.0-template"
}
},
"postActions": [
{
"description": "Restore NuGet packages required by this project",
"manualInstructions": [{ "text": "Run 'dotnet restore'" }],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
]
}