Package io.jenkins.plugins.ghacloud
Class GitHubClient
java.lang.Object
io.jenkins.plugins.ghacloud.GitHubClient
Minimal GitHub REST API client for triggering workflow_dispatch events.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GitHubClient
-
-
Method Details
-
triggerWorkflow
public void triggerWorkflow(String repository, String workflowFile, String ref, Map<String, String> inputs) throws IOExceptionTriggers a workflow_dispatch event on the specified repository and workflow file.- Parameters:
repository- owner/repoworkflowFile- the workflow filename (e.g. jenkins-agent.yml)ref- git ref to run against (e.g. main)inputs- key-value inputs forwarded to the workflow- Throws:
IOException
-