{"id":30674209,"url":"https://github.com/skipikash/jenkins","last_synced_at":"2026-05-18T03:34:09.076Z","repository":{"id":52445425,"uuid":"342293567","full_name":"skipikash/jenkins","owner":"skipikash","description":"A third-party go module for empowering go developers to be able to easily interact with the Jenkins API","archived":false,"fork":false,"pushed_at":"2021-05-09T19:59:28.000Z","size":1004,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T07:28:17.629Z","etag":null,"topics":["api","api-client","go","golang","jenkins","library","mock","module"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skipikash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-25T15:41:18.000Z","updated_at":"2021-05-09T20:17:14.000Z","dependencies_parsed_at":"2022-09-02T03:31:34.377Z","dependency_job_id":null,"html_url":"https://github.com/skipikash/jenkins","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/skipikash/jenkins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipikash%2Fjenkins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipikash%2Fjenkins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipikash%2Fjenkins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipikash%2Fjenkins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skipikash","download_url":"https://codeload.github.com/skipikash/jenkins/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skipikash%2Fjenkins/sbom","scorecard":{"id":829698,"data":{"date":"2025-08-11","repo":{"name":"github.com/skipikash/jenkins","commit":"241636bc5236946c7f4c21d7e96e6068368c9a50"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/skipikash/jenkins/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/skipikash/jenkins/go.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T17:25:20.946Z","repository_id":52445425,"created_at":"2025-08-23T17:25:20.947Z","updated_at":"2025-08-23T17:25:20.947Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","go","golang","jenkins","library","mock","module"],"created_at":"2025-09-01T07:04:49.852Z","updated_at":"2026-05-18T03:34:09.058Z","avatar_url":"https://github.com/skipikash.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins Go Module\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"250\" src=\"https://github.com/skipikash/jenkins/blob/main/logo.png?raw=true\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca\u003e\n      \u003cimg src=\"https://goreportcard.com/badge/github.com/skipikash/jenkins\" /\u003e\n  \u003c/a\u003e\n  \u003ca\u003e\n      \u003cimg src=\"https://github.com/skipikash/jenkins/actions/workflows/go.yml/badge.svg?branch=main\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nA third-party go module for empowering go developers to be able to easily interact with the Jenkins API. \n\nWith a few short lines of code, kick off pipelines, stop pipelines, pass input to pipelines waiting for input, retrieve information about pipeline configuration and more!\n\nThe ability to manage Jenkins system configuration is soon to come!\n\nPlus includes built in mock client to make unit testing easy.\n\n## Installation\n\nUse [go](https://golang.org/doc/install) to install the module.\n\n```bash\ngo get github.com/skipikash/jenkins\n```\n\n## Usage\n\n#### Start a Job\n```go\npackage examples\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/skipikash/jenkins\"\n\t\"github.com/skipikash/jenkins/job\"\n)\n\nfunc startMyJob() {\n\t// create client\n\tjc := jenkins.Client{\n\t\tJenkinsUsername: \"username\",\n\t\tJenkinsAPIToken: \"apiToken\",\n\t}\n\n\t// set parameters if job requires parameters, otherwise params := nil\n\tparams := job.Parameters{\n\t\tjob.Parameter{\n\t\t\tName:  \"MYPARAM\",\n\t\t\tValue: \"Hello World\",\n\t\t},\n\t}\n\n\tmyJobURL := \"http://myjenkins:8080.mycompany.com/job/myJob\"\n\trunningJobUrl, _ := job.Start(jc, params, myJobURL)\n\n\tfmt.Printf(\"%s is RUNNING!\", runningJobUrl)\n}\n```\n\n#### Watch a Job\nThe watch package is very useful for polling running jobs. Even use watch.JobWithInput to watch a job and automagically pass input once the pipeline requires it.\n```go\npackage examples\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/skipikash/jenkins\"\n\t\"github.com/skipikash/jenkins/watch\"\n)\n\nfunc watchMyJob() {\n\t// create client\n\t// Note: to create JenkinsAPIToken view cloudbees documentation\n\tjc := jenkins.Client{\n\t\tJenkinsUsername: \"username\",\n\t\tJenkinsAPIToken: \"apiToken\",\n\t}\n\n\t// URL of running job\n\trunningJobURL := \"http://myjenkins:8080.mycompany.com/job/myJob/1\"\n\n\t// watch a job until completion, polling it every minute\n\tstatus, _ := watch.Job(jc, runningJobURL, time.Minute)\n\tfmt.Printf(\"%s finished with a status of %s!\", runningJobURL, status)\n}\n```\n\n## Testing with mock.Client\nmock.Client comes preloaded with several mocked responses, however if you wish to add more to the mock.Client you can do that too!\n```go\npackage examples\n\nimport (\n\t\"testing\"\n\n\t\"github.com/skipikash/jenkins\"\n\t\"github.com/skipikash/jenkins/job\"\n\t\"github.com/skipikash/jenkins/mock\"\n)\n\nfunc myFunc(jc *jenkins.Client, jobRunURL string) {\n\tjob.GetRunInfo(jc, jobRunURL)\n\tjob.Abort(jc, jobRunURL)\n}\n\nfunc TestMyFunc(t *testing.T) {\n\tmyFunc(\u0026mock.Client, mock.TestRunningJobURL)\n}\n\n// to add your own custom mock response\nfunc TestSomethingElse(t *testing.T) {\n\tmock.AddResponse(\u0026mock.Client, \"GET\", \"/job/mycustomjobpath/api/json\", mock.Response{\n\t\tStatusCode: 200,\n\t\tBytes:      nil,\n\t})\n\n\t// now use mock.Client to make your requests\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskipikash%2Fjenkins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskipikash%2Fjenkins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskipikash%2Fjenkins/lists"}