{"id":19855979,"url":"https://github.com/stanislavkozlovski/jenkins_builder","last_synced_at":"2026-04-30T06:36:50.492Z","repository":{"id":40233907,"uuid":"112326159","full_name":"stanislavkozlovski/jenkins_builder","owner":"stanislavkozlovski","description":"A command-line application which helps you build jobs through the cli","archived":false,"fork":false,"pushed_at":"2022-10-24T16:45:13.000Z","size":27,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T08:58:40.039Z","etag":null,"topics":["build-automation","ci","continous-integration","hacktoberfest","jenkins"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stanislavkozlovski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-28T11:22:54.000Z","updated_at":"2022-10-24T16:42:37.000Z","dependencies_parsed_at":"2022-09-12T14:11:43.910Z","dependency_job_id":null,"html_url":"https://github.com/stanislavkozlovski/jenkins_builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavkozlovski%2Fjenkins_builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavkozlovski%2Fjenkins_builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavkozlovski%2Fjenkins_builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanislavkozlovski%2Fjenkins_builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stanislavkozlovski","download_url":"https://codeload.github.com/stanislavkozlovski/jenkins_builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241245718,"owners_count":19933297,"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":["build-automation","ci","continous-integration","hacktoberfest","jenkins"],"created_at":"2024-11-12T14:14:14.227Z","updated_at":"2026-04-30T06:36:50.464Z","avatar_url":"https://github.com/stanislavkozlovski.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jenkins_builder\nA command-line application which helps you build jenkins jobs through the cli, specifically catered towards the build setup we have at work.\nThat is, a single step in the build, with parameters that indicate which build/environment you want\n\n\n# Sample Usage\n```shell\n\u003e enether$ bundle exec ruby builder.rb application_name -j EVO-125\n[INFO][16:11:54.978] [2017-11-29 16:11:54 +0100] Starting build #325 for application_name\n[2017-11-29T16:11:54.978160 #68559]  INFO -- : Building job 'application_name' with parameters: {:BUILD_BRANCH=\u003e\"develop\", :ENVIRONMENT=\u003e\"alpha\"}\n[INFO][16:16:26.960] Job #325 of application_name has ended with status SUCCESS\n```\nThis builds the job, tries to find a JIRA ticket with that tag and comment on it\n\n# How to set up\nFirst off, to be able to connect to Jenkins/JIRA, you will need to provide your credentials.\n\n### 0. Make sure you are using Ruby 2.4\n### 1. Create a `.env` file in the base directory\nThat file should have the following variables - \n```\nJENKINS_URL=https://ci.yourcompany.com\nJENKINS_USERNAME=enether@github.com\nJENKINS_API_TOKEN=4t24tfefr31f244\nGOOGLE_USERNAME=enether@gmail.com\nGOOGLE_PASSWORD=your_pw\n```\nYour google credentials are needed to log in to JIRA. Logging in with JIRA credentials is currently not supported.\nIf you do not plan to use the `-j` command to comment on a ticket after a successful build, you can skip adding your Google credentials.\n\n### 2. Create a `options.yml` file in the base directory\nSample contents of that file\n```yaml\nbuilds:\n  jenkins_meta_options:\n    branch_parameter: BUILD_BRANCH\n    environment_parameter: ENVIRONMENT \n  app1:\n    name: Application-1\n    default_env: staging\n    staging:\n      name: application-1\n      default_branch: master\n  app2:\n    name: Application-1\n    default_env: staging\n    staging:\n      name: application-1\n      default_branch: master\n    testing:\n      name: application-1-test\n      default_branch: master\n\njira:\n  base_url: company.atlassian.net\n  default_comment: On staging\n```\nWhere the `builds` keys are the names of the applications with which you wil reference them.\nFor example, given the yaml above, building the first application would be done through:\n```shell\n\u003e enether$ bundle exec ruby builder.rb app1\n```\nThis will build the application and send the parameters `{BUILD_BRANCH: master, ENVIRONMENT: staging}`\n\n### 3. (Optional) Install `chromedriver` and add it to your PATH\nThis is needed for Selenium to run, for commenting on JIRA tickets. If you never run the `-j` option for JIRA commenting, you will not need this\n\n### 4. Run `bundle install`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanislavkozlovski%2Fjenkins_builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstanislavkozlovski%2Fjenkins_builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanislavkozlovski%2Fjenkins_builder/lists"}