{"id":21005689,"url":"https://github.com/mmendesas/jenkins-local","last_synced_at":"2026-04-22T16:33:43.929Z","repository":{"id":182193053,"uuid":"500523526","full_name":"mmendesas/jenkins-local","owner":"mmendesas","description":"Automated jenkins master-agent strategy with docker to test your CI locally","archived":false,"fork":false,"pushed_at":"2023-07-21T01:48:45.000Z","size":427,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-07T06:02:19.836Z","etag":null,"topics":["casc","cicd","configuration-as-code","jenkins","jenkins-agent","jenkins-master-slave","jobdsl","local-testing"],"latest_commit_sha":null,"homepage":"","language":"Groovy","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/mmendesas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-06T17:08:50.000Z","updated_at":"2024-05-13T16:22:20.000Z","dependencies_parsed_at":"2024-11-19T08:47:57.109Z","dependency_job_id":"0389b39c-785b-4c39-bcea-dadc390d4cef","html_url":"https://github.com/mmendesas/jenkins-local","commit_stats":null,"previous_names":["mmendesas/jenkins-local"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mmendesas/jenkins-local","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fjenkins-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fjenkins-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fjenkins-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fjenkins-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmendesas","download_url":"https://codeload.github.com/mmendesas/jenkins-local/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmendesas%2Fjenkins-local/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32145742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T15:33:03.595Z","status":"ssl_error","status_checked_at":"2026-04-22T15:30:42.712Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["casc","cicd","configuration-as-code","jenkins","jenkins-agent","jenkins-master-slave","jobdsl","local-testing"],"created_at":"2024-11-19T08:47:50.025Z","updated_at":"2026-04-22T16:33:38.918Z","avatar_url":"https://github.com/mmendesas.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JENKINS LOCAL\n\nAutomated CI/CD structure with jenkins and docker to test/validate your pipeline **`on your own machine`**\n\n\u003cimg src=\"docs/imgs/jenkins-local.png\" alt=“jenkins-controller” width=\"500\"\u003e\n\n\u003cul\u003e\n   \u003cli\u003eTest out your local projects\u003c/li\u003e\n   \u003cli\u003eDefine your agents based on your project stack\u003c/li\u003e\n   \u003cli\u003eUse main controller to manage everything (plugins, config etc)\u003c/li\u003e\n\u003c/ul\u003e\n\n## Getting started\n\n\u003cimg src=\"docs/imgs/jenkins-controller.png\" alt=“jenkins-controller” width=\"500\"\u003e\n\n1. Update `.env.jenkins` with your data using env.template\n\n2. From `/jenkins-local` root folder, you can run the command:\n\n   **`$ ./scripts/run.sh`**\n\n3. Go to your controller at [http://localhost:8787](http://localhost:8787)\n\n4. Open `admin \u003e __jenkins-jobs` and Build the job\n\n5. Go to `Dashboard` and you can see some examples\n\n## How it works?\n\n- The communication between containers and your local host is managed by exposing **docker-api**\n- From containers you can read/fetch your local **app001/.git** project\n- From **Jenkins Master** you can spin up an **Agent** to run your CI flow based on your project needs\n\n### Features\n\n- Test your local commits before create a PR\n- Jenkins controller with agent communication using docker\n- Multiple agents running in parallel\n- Control everything you need on your own machine\n\n## How to\n\n### Enable ssh locally\n\n- `Enable ssh in your Mac` - Required to make your host accept ssh connection\n  - System preferences \u003e Sharing \u003e Remote Login\n    \u003cimg src=\"docs/imgs/remote-login.png\" alt=“remote-login” width=\"500\"\u003e\n\n### Troubleshooting\n\n1. `Error: Connection refused`\n   - Error message: `stderr: ssh: connect to host host.docker.internal port 22: Connection refused`\n   - If you are trying to run `__jenkins-jobs` job and get error, you can solve it by enabling your `remote login`\n\n## Built With\n\n- [Docker](https://www.docker.com/)  - Container platform\n- [JCASC](https://www.jenkins.io/projects/jcasc/)  -  Jenkins configuration as code\n- [docker-plugin](https://plugins.jenkins.io/docker-plugin/)  -  docker plugin for jenkins\n\n## Author\n\n- **Marcio Mendes** - [mmendesas](https://github.com/mmendesas)\n\n## License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmendesas%2Fjenkins-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmendesas%2Fjenkins-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmendesas%2Fjenkins-local/lists"}