{"id":13764161,"url":"https://github.com/appleboy/drone-jenkins","last_synced_at":"2025-04-14T10:33:14.867Z","repository":{"id":12005592,"uuid":"70957315","full_name":"appleboy/drone-jenkins","owner":"appleboy","description":"Drone plugin for trigger Jenkins jobs.","archived":false,"fork":false,"pushed_at":"2024-11-25T08:52:30.000Z","size":389,"stargazers_count":39,"open_issues_count":4,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T08:31:42.612Z","etag":null,"topics":["docker","drone","drone-plugin","jenkins"],"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/appleboy.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":"2016-10-15T00:53:03.000Z","updated_at":"2024-10-25T21:31:35.000Z","dependencies_parsed_at":"2022-08-08T18:30:14.214Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/drone-jenkins","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-jenkins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-jenkins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-jenkins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdrone-jenkins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/drone-jenkins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248862774,"owners_count":21173878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","drone","drone-plugin","jenkins"],"created_at":"2024-08-03T15:01:17.153Z","updated_at":"2025-04-14T10:33:14.845Z","avatar_url":"https://github.com/appleboy.png","language":"Go","funding_links":[],"categories":["Software Packages","软件包","Go Tools","Go 工具","DevOps Tools","軟件包"],"sub_categories":["DevOps Tools","DevOps 工具","代码分析","devops 工具","DevOps工具"],"readme":"# drone-jenkins\n\n![logo](./images/logo.png)\n\n[![Lint and Testing](https://github.com/appleboy/drone-jenkins/actions/workflows/lint.yml/badge.svg)](https://github.com/appleboy/drone-jenkins/actions/workflows/lint.yml)\n[![GoDoc](https://godoc.org/github.com/appleboy/drone-jenkins?status.svg)](https://godoc.org/github.com/appleboy/drone-jenkins)\n[![codecov](https://codecov.io/gh/appleboy/drone-jenkins/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/drone-jenkins)\n[![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/drone-jenkins)](https://goreportcard.com/report/github.com/appleboy/drone-jenkins)\n\n[Drone](https://github.com/drone/drone) plugin for trigger [Jenkins](https://jenkins.io/) jobs.\n\n## Setup the Jenkins Server\n\nSetup the Jenkins server using the docker command:\n\n```sh\n$ docker run \\\n  --name jenkins \\\n  -d --restart always \\\n  -p 8080:8080 -p 50000:50000 \\\n  -v /data/jenkins:/var/jenkins_home \\\n  jenkins/jenkins:lts\n```\n\nPlease make sure that you create the `/data/jenkins` before starting the Jenkins. Create the new API token as below:\n\n![jenkins token](./images/jenkins-token.png)\n\n## Build or Download a binary\n\nThe pre-compiled binaries can be downloaded from [release page](https://github.com/appleboy/drone-jenkins/releases). Support the following OS type.\n\n* Windows amd64/386\n* Linux amd64/386\n* Darwin amd64/386\n\nWith `Go` installed\n\n```sh\ngo install github.com/appleboy/drone-jenkins\n```\n\nor build the binary with the following command:\n\n```sh\nmake build\n```\n\n## Docker\n\nBuild the docker image with the following commands:\n\n```sh\nmake docker\n```\n\n## Usage\n\nThere are three ways to trigger jenkins jobs.\n\n### Usage from binary\n\ntrigger single job.\n\n```bash\ndrone-jenkins \\\n  --host http://jenkins.example.com/ \\\n  --user appleboy \\\n  --token XXXXXXXX \\\n  --job drone-jenkins-plugin\n```\n\ntrigger multiple jobs.\n\n```bash\ndrone-jenkins \\\n  --host http://jenkins.example.com/ \\\n  --user appleboy \\\n  --token XXXXXXXX \\\n  --job drone-jenkins-plugin-1 \\\n  --job drone-jenkins-plugin-2\n```\n\n### Usage from docker\n\ntrigger single job.\n\n```bash\ndocker run --rm \\\n  -e JENKINS_BASE_URL=http://jenkins.example.com/\n  -e JENKINS_USER=appleboy\n  -e JENKINS_TOKEN=xxxxxxx\n  -e JENKINS_JOB=drone-jenkins-plugin\n  ghcr.io/appleboy/drone-jenkins\n```\n\ntrigger multiple jobs.\n\n```bash\ndocker run --rm \\\n  -e JENKINS_BASE_URL=http://jenkins.example.com/\n  -e JENKINS_USER=appleboy\n  -e JENKINS_TOKEN=xxxxxxx\n  -e JENKINS_JOB=drone-jenkins-plugin-1,drone-jenkins-plugin-2\n  ghcr.io/appleboy/drone-jenkins\n```\n\n### Usage from drone ci\n\nExecute from the working directory:\n\n```sh\ndocker run --rm \\\n  -e PLUGIN_URL=http://example.com \\\n  -e PLUGIN_USER=xxxxxxx \\\n  -e PLUGIN_TOKEN=xxxxxxx \\\n  -e PLUGIN_JOB=xxxxxxx \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  ghcr.io/appleboy/drone-jenkins\n```\n\nYou can get more [information](DOCS.md) about how to use scp plugin in drone.\n\n## Testing\n\nTest the package with the following command:\n\n```sh\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-jenkins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fdrone-jenkins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdrone-jenkins/lists"}