{"id":15486130,"url":"https://github.com/snow-actions/setup-jenkins","last_synced_at":"2025-10-24T12:14:16.041Z","repository":{"id":39651523,"uuid":"491146144","full_name":"snow-actions/setup-jenkins","owner":"snow-actions","description":"Set up Jenkins container on GitHub Actions","archived":false,"fork":false,"pushed_at":"2023-02-01T05:02:27.000Z","size":69,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T07:05:25.298Z","etag":null,"topics":["actions","github-actions","jenkins"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/snow-actions.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2022-05-11T14:27:23.000Z","updated_at":"2024-03-26T08:13:18.000Z","dependencies_parsed_at":"2023-02-17T02:16:25.401Z","dependency_job_id":null,"html_url":"https://github.com/snow-actions/setup-jenkins","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"snow-actions/composite-action-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snow-actions%2Fsetup-jenkins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snow-actions%2Fsetup-jenkins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snow-actions%2Fsetup-jenkins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snow-actions%2Fsetup-jenkins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snow-actions","download_url":"https://codeload.github.com/snow-actions/setup-jenkins/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250286169,"owners_count":21405377,"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":["actions","github-actions","jenkins"],"created_at":"2024-10-02T06:06:41.955Z","updated_at":"2025-10-24T12:14:11.008Z","avatar_url":"https://github.com/snow-actions.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/snow-actions/setup-jenkins/actions/workflows/test.yml/badge.svg)](https://github.com/snow-actions/setup-jenkins/actions/workflows/test.yml)\n\n# Setup Jenkins\n\nSet up Jenkins container.\n\n## Usage\n\n1. Copy `$JENKINS_HOME/jobs/*/config.xml` from existing Jenkins to `jenkins_home/` in your repository  \nor you can put `jenkins_home/jenkins.yaml` if [Jenkins Configuration as Code (JCasC)](#jenkins-configuration-as-code-jcasc)\n1. Create a workflow with the jenkins_home path\n\n```yml\nsteps:\n  - uses: actions/checkout@v3\n  - uses: snow-actions/setup-jenkins@v1.1.0\n    with:\n      jenkins_home: jenkins_home\n  - run: wget $JENKINS_URL/jnlpJars/jenkins-cli.jar\n  - run: java -jar jenkins-cli.jar -webSocket help\n  - run: java -jar jenkins-cli.jar -webSocket build job-1 -f -v -p param_1=p1\n```\n\n### Install plugins\n\nRecommended plugins are installed by default.\n\n#### Add plugins\n\nInstall plugins in addition to recommended plugins.\n\n```yml\nsteps:\n  - uses: snow-actions/setup-jenkins@v1.1.0\n  - run: wget $JENKINS_URL/jnlpJars/jenkins-cli.jar\n  - name: Short name\n    run: java -jar jenkins-cli.jar -webSocket install-plugin git -deploy\n  - name: URL\n    run: java -jar jenkins-cli.jar -webSocket install-plugin https://updates.jenkins.io/latest/http_request.hpi -deploy\n```\n\n#### Override plugins\n\nRecommended plugins are not installed.\n\n```yml\nsteps:\n  - uses: snow-actions/setup-jenkins@v1.1.0\n    with:\n      plugins: |\n        git\n        http_request\n```\n\n## Inputs\n\nSee [action.yml](action.yml)\n\n| Name | Description | Default | Required |\n| - | - | - | - |\n| `jenkins_image_tag` | [Jenkins image](https://hub.docker.com/r/jenkins/jenkins) tag | `lts-jdk11` | no |\n| `jenkins_home` | Jenkins home path which will be\u003cbr\u003emounted to `/var/jenkins_home`.\u003cbr\u003eSet `''` if you don't want to mount. | `${{ runner.temp }}/jenkins_home` | no |\n| `env_file` | Jenkins container [env_file](https://docs.docker.com/compose/environment-variables/#the-env_file-configuration-option) path | - | no |\n| `plugins` | Override plugins.txt\u003cbr\u003e`@` installs recommended plugins. | `@` | no |\n\n## Output environment variables\n\n| Name | Description |\n| - | - |\n| `JENKINS_HOME` | Path to jenkins_home |\n| `JENKINS_VERSION` | Jenkins version |\n| `JENKINS_URL` | Jenkins URL: http://localhost:8080 |\n| `COMPOSE_FILE` | Docker Compose variable as same as `--file`, `-f` option\u003cbr\u003eYou can access Jenkins container by `docker compose exec jenkins \u003ccommand\u003e` |\n\n## Examples\n\n### Workflow\n\nSee [test.yml](.github/workflows/test.yml)\n\n### Jenkins Configuration as Code (JCasC)\n\nSee [jenkins.yaml](test-resources/jenkins.yaml)\n\nDocuments\n- https://www.jenkins.io/doc/book/managing/casc/\n- https://www.jenkins.io/projects/jcasc/\n- https://plugins.jenkins.io/configuration-as-code/\n- https://plugins.jenkins.io/configuration-as-code-groovy/\n- https://plugins.jenkins.io/job-dsl/\n\n## Supported\n\n### Runners\n\n- `ubuntu-22.04`\n- `ubuntu-20.04`\n- `self-hosted`\n\n### Events\n\n- Any\n\n## Dependencies\n\n- [Docker Compose V2](https://docs.docker.com/compose/)\n- [Jenkins](https://hub.docker.com/r/jenkins/jenkins)\n\n## Contributing\n\nWelcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnow-actions%2Fsetup-jenkins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnow-actions%2Fsetup-jenkins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnow-actions%2Fsetup-jenkins/lists"}