shihyuho/Jenkins Job Trigger in Go

Trigger Jenkins job and wait for the result

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
jenkins-urlURL of the Jenkins serveryes
jenkins-userUser for accessing Jenkins. Store this in a secret for securityno
jenkins-patPersonal access token (PAT) for accessing Jenkins. Store this in a secret for securityno
insecuretrue/false, Allow insecure Jenkins server connections when using SSLnofalse
jobThe name of the Jenkins job to runyes
paramsThe parameters of the job in key=value format, can specify multiple or separate parameters with commas, e.g., foo=bar,baz=quxno
params-jsonThe parameters of the job in JSON format, e.g., {"foo":"bar","baz":"qux"}no
waittrue/false, Wait for the job to complete, and return the resultsnotrue
poll-timeHow often (duration) to poll the jenkins server for resultsno10s
max-attemptsMax count of polling for resultsno60
job-foldersThe folder paths of the job, can specify multiple or separate parameters with slashes, e.g., foo/barno

no outputs