{"id":13623039,"url":"https://github.com/tomasbjerre/jenkins-configuration-as-code-sandbox","last_synced_at":"2025-10-10T05:37:43.532Z","repository":{"id":45113098,"uuid":"144279620","full_name":"tomasbjerre/jenkins-configuration-as-code-sandbox","owner":"tomasbjerre","description":"Jenkins Configuration as Code, JCasC, Job DSL, Pipeline, Shared library","archived":false,"fork":false,"pushed_at":"2022-01-07T14:24:33.000Z","size":81,"stargazers_count":110,"open_issues_count":1,"forks_count":58,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-02T10:56:09.153Z","etag":null,"topics":["gitlab","jcasc","jenkins","jenkins-configuration","jenkins-job-dsl","jenkins-pipeline-library"],"latest_commit_sha":null,"homepage":"https://bjurr.com/jenkins-configuration-as-code-and-gitlab/","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomasbjerre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["tomasbjerre"]}},"created_at":"2018-08-10T11:48:21.000Z","updated_at":"2025-06-05T13:00:53.000Z","dependencies_parsed_at":"2022-08-28T13:40:38.817Z","dependency_job_id":null,"html_url":"https://github.com/tomasbjerre/jenkins-configuration-as-code-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomasbjerre/jenkins-configuration-as-code-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbjerre%2Fjenkins-configuration-as-code-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbjerre%2Fjenkins-configuration-as-code-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbjerre%2Fjenkins-configuration-as-code-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbjerre%2Fjenkins-configuration-as-code-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasbjerre","download_url":"https://codeload.github.com/tomasbjerre/jenkins-configuration-as-code-sandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbjerre%2Fjenkins-configuration-as-code-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002893,"owners_count":26083468,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["gitlab","jcasc","jenkins","jenkins-configuration","jenkins-job-dsl","jenkins-pipeline-library"],"created_at":"2024-08-01T21:01:27.321Z","updated_at":"2025-10-10T05:37:43.497Z","avatar_url":"https://github.com/tomasbjerre.png","language":"Groovy","funding_links":["https://github.com/sponsors/tomasbjerre"],"categories":["Groovy"],"sub_categories":[],"readme":"# Jenkins Configuration as Code Sandbox\n\nThis is an example of Jenkins Configuration as Code with GitLab.\n\nThis is a fully working CI/CD setup with Jenkins and GitLab where everything is put under version control:\n\n * Global Jenkins settings - With [Jenkins Configuration as Code](https://jenkins.io/projects/jcasc/).\n * Jenkins job configurations - With [Job DSL](https://github.com/jenkinsci/job-dsl-plugin/wiki).\n * Jenkins build process - With [Pipelines](https://jenkins.io/doc/book/pipeline/) and [Shared Library](https://jenkins.io/doc/book/pipeline/shared-libraries/).\n * Application source code - With [GitLab](https://docs.gitlab.com/ce/).\n\nThis allows for you to:\n\n * Do local development of the CI/CD setup. Giving self confidence to do refactorings and keep all the scripts clean.\n * Allow code review of changes to the installation. Enable anyone to contribute to an innovative build CI/CD process.\n * Manage different installations in different branches. Push to the branch of installation **X** and **X** will automatically be re-configured.\n\nIt also demonstrates a pattern where a \"*contract*\" is established between application repositories and the infrastructure.  A `jenkins-settings.json`-file is created in the application repositories to tweak the build process. This means:\n\n * The pipeline code can be developed generically. Pipelines are not created to take care of a specific repo. Generic features are created, and documented, and the application developers chooses what features that should apply to thir repo. By editing `/jenkins-settings.json` in their repo. A default set of settings are derived and applied if no properties found in the repo. \n * The solution becomes scalable and can handle a vast amount of application repositories. With low effort needed for support.\n\n## Usage\n\n**Start Environment**\n```shell\ndocker-compose up -d \n```\n\nGitLab will be available in a few moments at http://localhost/ and you can login with credentials found [here](gitlab-setup/config.txt).\n\nJenkins now available on: http://localhost:8080/\n\nJobDSL docs available at: http://localhost:8080/plugin/job-dsl/api-viewer/index.html\n\n**Destroy Environment**\n\n```shell\ndocker-compose down -v --rmi local\n```\nall services are down and data lost\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbjerre%2Fjenkins-configuration-as-code-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasbjerre%2Fjenkins-configuration-as-code-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbjerre%2Fjenkins-configuration-as-code-sandbox/lists"}